A data processing method, a data processing device and a data processing device
By performing word segmentation processing and attribute analysis on the audio data recorded by the terminal, and applying repetition, stretching, frequency and channel processing technologies to change the expression form of the audio data, it solves the problem of boring audio data effects and achieves a more entertaining audio experience.
Patent Information
- Application Number
- CN201910365352.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-04-30
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2040-04-11
AI Technical Summary
The audio data recorded by existing terminals has an outdated expression form and boring effects, and cannot meet the specific entertainment needs of users.
By performing word segmentation processing on the text in the audio data, and performing repeated processing, stretching processing, frequency processing and vocal channel processing according to the time attributes, position attributes and language attributes of the word segmentation, new audio units are generated, thereby changing the expression form of the audio data. to enhance the entertainment effect.
It improves the entertainment effect of audio data, enhances the matching between the processing process of audio units and the laws of linguistics, and provides a more attractive audio experience.
Smart Images

Figure CN111950266B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a data processing method, device and a device for data processing. Background Art
[0002] With the development of computer technology, terminals such as mobile phones and tablet computers have been widely used, and the functions provided by the corresponding terminals are becoming more and more abundant. Common functions include: multimedia functions, instant messaging functions, etc.
[0003] Taking multimedia functions as an example, the terminal can not only support audio playback, but also support audio recording. For example, the terminal can record a song sung by a user to facilitate subsequent playback of the song sung by the user.
[0004] Currently, the audio recorded by terminals is usually outdated and boring, so it cannot meet the specific entertainment needs of users. Summary of the invention
[0005] The embodiments of the present invention provide a data processing method, a device and a device for data processing, which can change the expression form of word segments in a text, thereby enhancing the entertainment effect of audio data.
[0006] In order to solve the above problem, an embodiment of the present invention discloses a data processing method, including:
[0007] For the text corresponding to the first audio data, determine the word segmentation corresponding to the text and the attributes of the word segmentation; the attributes include: time attribute, location attribute and language attribute;
[0008] According to the attribute of the word segmentation, a first audio unit corresponding to the word segmentation in the first audio data is processed to obtain a second audio unit corresponding to the word segmentation; the processing of the first audio unit includes: at least one of repetition processing, stretching processing, frequency processing and channel processing;
[0009] The second audio data is obtained according to the position attribute of the word segment and the second audio unit corresponding to the word segment.
[0010] On the other hand, an embodiment of the present invention discloses a data processing device, including:
[0011] A word segmentation and attribute determination module, for determining the word segmentation corresponding to the text corresponding to the first audio data, and the attribute of the word segmentation; the attribute includes: time attribute, location attribute and language attribute;
[0012] an audio unit processing module, configured to process a first audio unit corresponding to the segmented word in the first audio data according to the attribute of the segmented word, so as to obtain a second audio unit corresponding to the segmented word; the processing of the first audio unit includes: at least one of repetition processing, stretching processing, frequency processing and channel processing; and
[0013] The second audio data determination module is used to obtain the second audio data according to the position attribute of the word segment and the second audio unit corresponding to the word segment.
[0014] In another aspect, an embodiment of the present invention discloses a device for data processing, comprising a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations:
[0015] For the text corresponding to the first audio data, determine the word segmentation corresponding to the text and the attributes of the word segmentation; the attributes include: time attribute, location attribute and language attribute;
[0016] According to the attribute of the word segmentation, a first audio unit corresponding to the word segmentation in the first audio data is processed to obtain a second audio unit corresponding to the word segmentation; the processing of the first audio unit includes: at least one of repetition processing, stretching processing, frequency processing and channel processing;
[0017] The second audio data is obtained according to the position attribute of the word segment and the second audio unit corresponding to the word segment.
[0018] On the other hand, an embodiment of the present invention discloses a machine-readable medium having instructions stored thereon, which, when executed by one or more processors, enables the device to perform one or more of the data processing methods described above.
[0019] The embodiments of the present invention include the following advantages:
[0020] The embodiment of the present invention performs at least one of the following processing on the first audio unit corresponding to the word segment in the text corresponding to the first audio data: repetition processing, stretching processing, frequency processing and channel processing, changes the expression form of the word segment in the text, and thereby enhances the entertainment effect of the audio data.
[0021] Furthermore, the embodiment of the present invention considers the attributes of word segmentation during the processing of the first audio unit. The attributes may include: time attributes, location attributes, and language attributes. Therefore, the matching degree between the processing of the first audio unit and the linguistic rules can be improved, thereby enhancing the processing effect of the first audio unit. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0023] Figure 1 It is a schematic diagram of an application environment of a data processing method according to an embodiment of the present invention;
[0024] Figure 2 is a flow chart of steps of a data processing method embodiment 1 of the present invention;
[0025] Figure 3 is a flow chart of steps of a second embodiment of a data processing method of the present invention;
[0026] Figure 4 is a structural block diagram of an embodiment of a data processing device of the present invention;
[0027] Figure 5 is a block diagram of an apparatus 800 for data processing according to the present invention; and
[0028] Figure 6 It is a schematic diagram of the structure of the server in some embodiments of the present invention. DETAILED DESCRIPTION
[0029] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0030] In view of the technical problem in the related art that the audio recorded by the terminal is usually outdated in style and boring in effect, an embodiment of the present invention provides a data processing solution, which specifically includes: for a text corresponding to first audio data, determining the word segmentation corresponding to the text and the attributes of the word segmentation; the attributes include: time attributes, position attributes and language attributes; based on the attributes of the word segmentation, processing the first audio unit corresponding to the word segmentation in the first audio data to obtain the second audio unit corresponding to the word segmentation; the processing of the first audio unit includes: at least one of repetition processing, stretching processing, frequency processing and channel processing; based on the position attribute of the word segmentation and the second audio unit corresponding to the word segmentation, obtaining the second audio data.
[0031] In the embodiment of the present invention, audio may refer to sound waves whose frequencies are audible to human ears and are within a preset frequency range. The preset frequency range may include: 20 Hz (Hertz) to 20 kHz, etc.
[0032] Audio data may refer to sound wave data. Audio data may include: analog audio data or digital audio data. Among them, digital audio data can be used to represent audio data in binary form. Conversion can be performed between digital audio data and analog audio data. For example, an audio file as analog audio data can be converted into digital audio data; or, analog audio data obtained by conversion from digital audio data can be output to an audio output device, and the audio output device plays the analog audio data.
[0033] In order to enhance the entertainment effect of audio data, the embodiment of the present invention processes the first audio data to obtain the second audio data. The granularity of processing the first audio data is specifically: the first audio unit corresponding to the word segmentation of the text corresponding to the first audio data in the first audio data is processed, and the first audio unit is processed to obtain the processed second audio unit, and then the second audio data is obtained based on the second audio unit.
[0034] The processing of the first audio unit may specifically include: at least one of repetition processing, stretching processing, frequency processing and channel processing.
[0035] The repetition process may be used to repeat the first audio unit corresponding to a certain word segment at least once to change the expression form of the word segment, thereby enhancing the entertainment effect of the audio data. For example, the text A corresponding to the first audio data includes: "Are you ok", and the first audio unit corresponding to any word segment in the text A is repeated to provide a novel expression form.
[0036] The stretching process can be used to stretch the duration information of the first audio unit corresponding to a certain word segment, that is, the duration information of the first audio unit can be increased. Since the expression form of the word segment can be changed by increasing the duration information, the entertainment effect of the audio data can be enhanced.
[0037] Frequency processing can be used to adjust the frequency of the duration information of the first audio unit corresponding to a certain word segment. Frequency is the number of sound waves passing through a given point per second, and the unit of frequency can be Hertz. Frequency can affect pitch, and pitch can refer to the height of the sound. The above frequency processing can adjust the pitch of the first audio unit, so it can change the expression form of the word segment, so it can enhance the entertainment effect of the audio data.
[0038] Channel processing can be used to set the channel parameters of the first audio unit. Channel can refer to the propagation channel of sound. Channel can reflect the propagation change of sound in space, so it can affect the playback effect of sound. The above-mentioned channel processing can achieve a stereo sound change effect. The channel of the embodiment of the present invention may include: at least two channels, and the propagation of sound between different channels can achieve a stereo sound change effect. For example, the channel may include: a left channel and a right channel, and the left channel and the right channel can broadcast the same or different sounds respectively, and produce a stereo sound change effect from left to right or from right to left. In addition to the left channel and the right channel, the channel may also include: a center channel, a rear channel, etc.
[0039] In summary, the embodiment of the present invention performs at least one of the following processing on the first audio unit corresponding to the word segmentation: repetition processing, stretching processing, frequency processing and channel processing, which can change the expression form of the word segmentation, thereby enhancing the entertainment effect of the audio data.
[0040] Furthermore, the embodiment of the present invention considers the attributes of word segmentation during the processing of the first audio unit. The attributes may include: time attributes, location attributes, and language attributes. Therefore, the matching degree between the processing of the first audio unit and the linguistic rules can be improved, thereby enhancing the processing effect of the first audio unit.
[0041] The applicable scenarios of the embodiments of the present invention may include multimedia scenarios, etc. The first audio data may correspond to multimedia content, and the multimedia content may include audio or video, etc. The embodiments of the present invention process the first audio data to obtain the second audio data, and may change the expression form of the segmentation corresponding to the first audio data, thereby enhancing the entertainment effect of the audio data.
[0042] The data processing method provided by the embodiment of the present invention can be applied to Figure 1 In the application environment shown, Figure 1 As shown, the client 100 and the server 200 are located in a wired or wireless network, and the client 100 and the server 200 perform data exchange through the wired or wireless network.
[0043] Optionally, the client 100 may run on a device. For example, the client 100 may be an APP (application) running on the device, such as a multimedia processing APP, an instant messaging APP, an input method APP, or an APP provided by the operating system, etc. The embodiment of the present invention does not limit the specific APP corresponding to the client. Optionally, the client 100 may provide a question-and-answer function, which may respond to user operations and quickly provide answers.
[0044] Optionally, the above-mentioned device may include a screen, and the above-mentioned screen may be used to display content, and the above-mentioned content may include: UI (User Interface) etc. The above-mentioned device may specifically include but is not limited to: smart phones, tablet computers, e-book readers, MP3 (Moving Picture Experts Group Audio Layer III) players, MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop computers, car computers, desktop computers, set-top boxes, smart TVs, wearable devices, smart speakers, etc. It can be understood that the embodiments of the present invention do not limit the specific devices.
[0045] In one embodiment of the present invention, a client may receive first audio data uploaded or recorded by a user, and provide the user with second audio data corresponding to the first audio data, wherein the first audio data may be processed by the client or the server.
[0046] Method Example 1
[0047] Reference Figure 2 , shows a flow chart of the steps of a data processing method embodiment 1 of the present invention, which may specifically include the following steps:
[0048] Step 201: for a text corresponding to the first audio data, determine the word segmentation corresponding to the text and the attribute of the word segmentation; the attribute may specifically include: time attribute, location attribute and language attribute;
[0049] Step 202: Process the first audio unit corresponding to the word segment in the first audio data according to the attribute of the word segment to obtain a second audio unit corresponding to the word segment; the processing of the first audio unit may specifically include: at least one of repetition processing, stretching processing, frequency processing and channel processing;
[0050] Step 203: Obtain second audio data according to the position attribute of the word segment and the second audio unit corresponding to the word segment.
[0051] Figure 2 At least one step of the method embodiment shown can be executed by a client or a server. It can be understood that the embodiment of the present invention is for Figure 2 The specific execution subject of the illustrated method embodiment is not limited.
[0052] In step 201, the first audio data may be audio data uploaded by a user, or the first audio data may be audio data recorded by a user, or the first audio data may be audio data stored in a multimedia library. It is understood that the embodiment of the present invention does not limit the specific first audio data. It should be noted that the expression form corresponding to the first audio data may include: speaking form and / or singing form. For example, the user may speak a text, or the user may sing a text. The embodiment of the present invention does not limit the specific first audio data.
[0053] The embodiment of the present invention can use speech recognition technology to determine the text corresponding to the first audio data. If the first audio data is denoted as S, a speech feature sequence O corresponding to S is obtained after a series of processing, denoted as O = {O1, O2, ..., O i , …, O T}, where O i is the i-th (i is a natural number) speech feature, and T is the total number of speech features. The sentence corresponding to the first audio data S can be regarded as a word string composed of many words, denoted as W = {w1, w2, ..., w n The process of speech recognition is to find the most likely word string W' based on the known speech feature sequence O. W' can be used to represent the speech recognition result corresponding to the first audio data, that is, the text corresponding to the first audio data. n can be a natural number.
[0054] Specifically, speech recognition is a model matching process. In this process, a speech model can be first established according to the characteristics of human speech, and the required features can be extracted by analyzing the input first audio data to establish the template required for speech recognition; the process of recognizing the user's first audio data is the process of comparing the features of the first audio data with the template, and finally determining the best template that matches the features to obtain the speech recognition result. The specific speech recognition algorithm can adopt a training and recognition algorithm based on a statistical hidden Markov model, or a training and recognition algorithm based on a neural network, a recognition algorithm based on dynamic time normalization matching, and other algorithms. The embodiment of the present invention does not limit the specific speech recognition process.
[0055] In practical applications, a word segmentation method may be used to determine the word segmentation corresponding to the text. The word segmentation method can segment a sentence into individual words, and is a process of recombining continuous sentences into a word sequence according to certain specifications. The word segmentation method may specifically include: a word segmentation method based on string matching, a word segmentation method based on understanding, and a word segmentation method based on statistics, etc. It can be understood that the embodiment of the present invention does not limit the specific word segmentation method.
[0056] The attributes of word segmentation may include: time attribute, location attribute and language attribute.
[0057] Among them, the time attribute can be used to characterize the time spent on expressing the word segmentation. The above time attribute can be characterized by the duration information of the first audio unit corresponding to the word segmentation. It can be understood that the duration information of the first audio unit may include: the duration information of the entire word segmentation corresponding to the first audio unit, or the duration information of some syllables of the word segmentation corresponding to the first audio unit. Taking the word segmentation "ok" as an example, some syllables of "ok" may include: the syllable corresponding to "o" or the syllable corresponding to "k".
[0058] The position attribute may refer to the position of a participle in a sentence, such as the beginning, the middle, or the end of a sentence.
[0059] Language attributes can reflect the laws of linguistics. The language attributes include: parts of speech, and / or sentence components. Parts of speech can include: verbs, nouns, or modal particles, etc. Sentence components can include: subjects, predicates, objects, etc. Of course, parts of speech and sentence components are only optional embodiments of language attributes. In fact, those skilled in the art can adopt other language attributes according to actual application requirements. For example, language attributes can also include: entity attributes, etc., where entities can refer to things that exist objectively and can be distinguished from each other. Entities can be specific people, things, or objects, or they can be abstract concepts or connections.
[0060] In step 202, the first audio data may refer to audio data corresponding to the complete text; the first audio unit may be a part of the first audio data, that is, part of the audio data corresponding to the word segmentation in the text in the first audio data.
[0061] The embodiment of the present invention can process the first audio unit corresponding to the word segment in the first audio data according to the attribute of the word segment. In practical applications, the first audio unit corresponding to all or part of the word segment can be processed. Among them, the first audio unit corresponding to a word segment may not be processed, or the first audio unit corresponding to a word segment may correspond to one or more processing.
[0062] In an optional embodiment of the present invention, step 202 processes the first audio unit corresponding to the segmented word in the first audio data, which may specifically include: determining a target segmented word based on the attribute of the segmented word; the attribute corresponding to the target segmented word meets a preset condition; and processing the first audio unit corresponding to the target segmented word in the first audio data.
[0063] The embodiment of the present invention can determine a target word segment whose attributes meet the preset conditions, and process the first audio unit corresponding to the target word segment.
[0064] Optionally, different processing may correspond to the same or different preset conditions. Taking repetition processing or stretching processing as an example, the corresponding preset conditions may include at least one of the following attributes: sentence start position, sentence end position, modal particle, subject, etc.
[0065] The repetition process may be used to repeat the first audio unit corresponding to a certain word segment at least once, and the specific number of repetitions may be determined by those skilled in the art according to actual application requirements.
[0066] The stretching process may be used to stretch the duration information of the first audio unit corresponding to a certain word segment. The stretched duration information may be determined by a person skilled in the art according to actual application requirements. Optionally, the stretching process may update the duration information to a preset duration value, or the stretching process may update the duration information to a preset multiple of the original duration value, such as 1.5 times, 2 times, 3 times, etc.
[0067] Optionally, the duration information of the entire word segment corresponding to the first audio unit may be stretched, for example, the duration information of the entire word segment "we" or the entire word segment "ok" corresponding to the first audio unit may be stretched.
[0068] Optionally, the duration information of the first audio unit corresponding to some syllables of the word segmentation may be stretched. Taking the word segmentation "ok" as an example, some syllables of "ok" may include syllables corresponding to "o" or syllables corresponding to "k", and the duration information of the syllables corresponding to "o" of "ok" may be stretched. Taking the word segmentation "we" as an example, the duration information of the syllables corresponding to "I" of "we" may be stretched.
[0069] Optionally, a preset duration value may be obtained based on the note duration. Note types may include: perfect notes, quarter notes, eighth notes, sixteenth notes, thirty-second notes, etc. Note duration, also known as note value or note value, is used to express the relative duration between notes. The duration of a perfect note is equal to the duration of two half notes; the duration of a perfect note is equal to the duration of four quarter notes, the duration of a perfect note is equal to the duration of eight eighth notes; the duration of a perfect note is equal to the duration of sixteen sixteenth notes, and the duration of a perfect note is equal to the duration of thirty-two thirty-second notes. The preset duration value may be a multiple of the shortest note in the second audio data.
[0070] Optionally, the frequency processing may correspond to all the word segments, that is, the frequency processing may be performed on the first audio units corresponding to all the word segments. The frequency processing may be used to increase or decrease the frequency.
[0071] Optionally, the channel processing may correspond to all the word segments, that is, the channel processing may be performed on the first audio units corresponding to all the word segments. The channel processing may be used to set the channel parameters of the first audio unit. The channel parameters may include left channel parameters, right channel parameters, center channel parameters, or rear channel parameters, etc.
[0072] Optionally, adjacent segmented words correspond to different channel parameters. Different channel parameters can produce changes in sound in space, thereby achieving a stereo sound change effect. Assuming that the text includes: segmented word 1, segmented word 2, ... segmented word i, ... segmented word n, i and n can be natural numbers, then segmented word i and segmented word (i+1) can correspond to different channel parameters.
[0073] Optionally, the second audio unit and background music corresponding to the same word segment correspond to different channel parameters. Background music (BGM) is also called accompaniment music or soundtrack. Background music can include instrumental music that accompanies and sets off singing. Background music can provide rhythm and tone, and its functions can include at least one of the following: helping the singer grasp the rhythm; stimulating the interest of the audience and increasing participation; and setting off the atmosphere of the music to a certain extent.
[0074] For the same word segment, the corresponding second audio unit and background music may correspond to different channel parameters, so that changes in sound in space may be generated, thereby achieving a stereo sound change effect.
[0075] Of course, the fact that adjacent segmented words correspond to different channel parameters is only an optional embodiment, and in fact, adjacent segmented words can correspond to the same channel parameters. Similarly, the fact that the second audio unit and background music corresponding to the same segmented word correspond to different channel parameters is only an optional embodiment, and in fact, the second audio unit and background music corresponding to the same segmented word can correspond to the same channel parameters.
[0076] In an application example of the present invention, the text A corresponding to the first audio data includes: "Are you ok", and the following processing can be performed on the first audio unit corresponding to the word segment in the text A to change the expression form of the word segment in the text:
[0077] For example, the first audio unit corresponding to the word "Are" can be repeated twice, and the corresponding second audio unit corresponds to the word "Are are are"; for another example, the first audio unit corresponding to the word "you" can be stretched, for example, the duration information is updated to twice the original duration value, etc.; for another example, the frequency of the first audio unit corresponding to any word can be increased or decreased; or, the channel parameters of the first audio unit corresponding to any word can be set.
[0078] It should be noted that, when multiple processing is performed on the first audio unit corresponding to the word segmentation, the embodiment of the present invention does not limit the order of the multiple processing of the first audio unit. For example, the order of the multiple processing of the first audio unit may include: repetition processing, stretching processing, frequency processing, and channel processing.
[0079] Step 202 processes the first audio unit corresponding to the word segment in the first audio data, which may specifically include: processing the first audio unit corresponding to the word segment in the first audio data according to the attribute of the word segment and the background music corresponding to the word segment, so that the obtained second audio unit matches the background music.
[0080] Optionally, the background music may correspond to a note file such as MIDI (Musical Instrument Digital Interface), and the note file may record corresponding numbers for the notes of the background music, and the note file may be a binary file.
[0081] The embodiment of the present invention can process the first audio unit according to the attribute of the word segmentation and the background music corresponding to the word segmentation, so that the obtained second audio unit can match the background music, thereby increasing the matching degree between the second audio unit and the background music.
[0082] Optionally, the second audio unit may correspond to a first frequency sequence, the background music may correspond to a second frequency sequence, and the first frequency sequence matches the second frequency sequence.
[0083] Notes usually correspond to specific frequencies. For example, the frequencies corresponding to the notes in the key of C are as follows: do corresponds to 261.5HZ, re corresponds to 293.5HZ, mi corresponds to 329.5HZ, fa corresponds to 349HZ, so corresponds to 392HZ, la corresponds to 440HZ, xi corresponds to 494HZ, etc. Therefore, the embodiment of the present invention can determine the second frequency sequence based on the mapping relationship between notes and frequencies, and the note file corresponding to the background music. The second frequency sequence can arrange the frequencies corresponding to the notes in order from first to last in time. For example, the second frequency sequence can include: f1, f2, f3, f4, etc.
[0084] Optionally, the first frequency sequence and the second frequency sequence match each other, including: the total duration of the first frequency sequence and the second frequency sequence matches each other. Optionally, the first frequency sequence and the second frequency sequence match each other, including: the note type of the first frequency sequence and the second frequency sequence matches each other. Optionally, the first frequency sequence and the second frequency sequence match each other, including: the frequency of the first frequency sequence and the second frequency sequence at the same position matches each other, etc.
[0085] For example, frequency sequence A includes: f1, f2, f3, f4 in sequence, frequency sequence B includes: f1, f2, f3, f4 in sequence, and frequency sequence C includes: f1, f2, f3, f5 in sequence; then frequency sequence A matches frequency sequence B, but frequency sequence A does not match frequency sequence C.
[0086] In the embodiment of the present invention, the background music corresponding to different word segments can be independent of each other. A variety of background music can be pre-stored in a background music library, and the information of the background music may include: duration information, note type, frequency sequence, etc. Optionally, the background music corresponding to the word segmentation can be obtained from the background music library based on the attribute of the word segmentation. The attribute of the word segmentation can match the information of the background music, for example, the time attribute of the word segmentation matches the duration information of the background music, etc.
[0087] In the embodiment of the present invention, the background music corresponding to different segmentations can be associated with each other. For example, the background music corresponding to multiple adjacent segmentations are associated with each other, for example, multiple segmentations in a sentence correspond to background music clips in a background music; or, multiple sentences in a text correspond to background music clips in a background music, etc. It can be understood that those skilled in the art can determine the background music corresponding to the segmentations in the text according to actual application requirements, and the embodiment of the present invention does not limit the specific background music.
[0088] In step 203, the second audio units corresponding to the multiple word segments may be merged according to the position attribute of the word segmentation to obtain the second audio data.
[0089] The second audio unit can represent the processing result of the first audio unit. It can be understood that if the first audio unit is not processed, step 203 can merge the second audio units corresponding to the multiple word segments and the first audio units corresponding to the word segments according to the position attribute of the word segmentation to obtain the second audio data.
[0090] In an optional embodiment of the present invention, step 203 obtains the second audio data according to the position attribute of the word segment and the second audio unit corresponding to the word segment, which may specifically include: mixing the second audio unit corresponding to the word segment and the background music corresponding to the word segment to obtain mixed audio data; and fusing the mixed audio data corresponding to multiple word segments according to the position attribute of the word segment to obtain the second audio data. In the embodiment of the present invention, the second audio unit and its corresponding background music may be mixed first, and then the mixed audio data corresponding to multiple word segments may be fused according to the position attribute of the word segment.
[0091] It can be understood that in other embodiments of the present invention, the second audio units corresponding to multiple word segments can be first fused according to the position attributes of the word segments to obtain fused audio data, and then the fused audio data can be mixed with background music to obtain second video data.
[0092] In practical applications, the second audio data may be outputted. For example, the server may output the second audio data to the client, or the client may output the second audio data to the user.
[0093] In summary, the data processing method of the embodiment of the present invention performs at least one of the following processing on the first audio unit corresponding to the word segment in the text corresponding to the first audio data: repetition processing, stretching processing, frequency processing and channel processing, which can change the expression form of the word segment in the text, thereby enhancing the entertainment effect of the audio data.
[0094] Furthermore, the embodiment of the present invention considers the attributes of word segmentation during the processing of the first audio unit. The attributes may include: time attributes, location attributes, and language attributes. Therefore, the matching degree between the processing of the first audio unit and the linguistic rules can be improved, thereby enhancing the processing effect of the first audio unit.
[0095] Method Example 2
[0096] Reference Figure 3 , shows a flow chart of the steps of a data processing method embodiment 2 of the present invention, which may specifically include the following steps:
[0097] Step 301: for a text corresponding to first audio data, determine the word segmentation corresponding to the text and the attribute of the word segmentation; the attribute may specifically include: time attribute, location attribute and language attribute;
[0098] Step 302: Repeat and stretch the first audio unit corresponding to the segmented word in the first audio data according to the attribute of the segmented word, so as to obtain a second audio unit A corresponding to the segmented word;
[0099] Step 303: Perform frequency processing and channel processing on the second audio unit A corresponding to the word segmentation according to the time attribute of the word segmentation and the information of the background music, so as to obtain the second audio unit B corresponding to the word segmentation;
[0100] Step 304: Mix the second audio unit B corresponding to the word segment and the background music corresponding to the word segment to obtain mixed audio data;
[0101] Step 305: According to the position attribute of the word segmentation, the mixed audio data corresponding to the multiple word segmentations are merged to obtain the second audio data.
[0102] In step 302, the repetition process may cause the first audio unit to be repeated for a preset number of times, for example, "are" in "Are you ok" is repeated twice, etc. The stretching process may increase the duration information of the first audio unit, for example, the original duration value of "you" in "Are you ok" is t, and the target duration value after the stretching process is 2t, etc. It can be understood that the embodiment of the present invention does not limit the execution order of the repetition process and the stretching process, and the two may be executed successively or one after the other.
[0103] In step 303, the background music can be used as a basis for frequency processing. In the embodiment of the present invention, the frequency of the second audio unit A can be adjusted according to the frequency of the background music, so that the frequency of the second audio unit A matches the frequency of the background music. Optionally, the second audio unit can correspond to a first frequency sequence, the background music can correspond to a second frequency sequence, and the first frequency sequence matches the second frequency sequence.
[0104] In summary, the data processing method of the embodiment of the present invention utilizes the rhythm and tone provided by the background music to perform frequency processing on the second audio unit A corresponding to the word segmentation, which can improve the matching degree between the second audio unit B and the background music, and can stimulate the interest of the audience and set off the atmosphere of the music to a certain extent.
[0105] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0106] Device Embodiment
[0107] Reference Figure 4 , shows a structural block diagram of a data processing device embodiment of the present invention, which may specifically include:
[0108] The word segmentation and attribute determination module 401 is used to determine the word segmentation corresponding to the text corresponding to the first audio data, and the attribute of the word segmentation; the attribute includes: time attribute, location attribute and language attribute;
[0109] an audio unit processing module 402, configured to process a first audio unit corresponding to the segmented word in the first audio data according to the attribute of the segmented word, so as to obtain a second audio unit corresponding to the segmented word; the processing of the first audio unit includes: at least one of repetition processing, stretching processing, frequency processing and channel processing; and
[0110] The second audio data determination module 403 is used to obtain the second audio data according to the position attribute of the word segment and the second audio unit corresponding to the word segment.
[0111] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0112] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0113] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0114] An embodiment of the present invention provides a device for data processing, including a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, and the one or more programs include instructions for performing the following operations:.
[0115] Figure 5 8 is a block diagram of a data processing apparatus 800 according to an exemplary embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0116] Reference Figure 5 , the device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .
[0117] The processing component 802 generally controls the overall operation of the device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0118] The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0119] The power supply component 806 provides power to the various components of the device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 800.
[0120] The multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0121] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the device 800 is in an operating mode, such as a call mode, a recording mode, and a voice data processing mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.
[0122] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
[0123] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the device 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of components, such as the display and keypad of the device 800, and the sensor assembly 814 can also detect the position change of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration / deceleration of the device 800, and the temperature change of the device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0124] The communication component 816 is configured to facilitate wired or wireless communication between the device 800 and other devices. The device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency data processing (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0125] In an exemplary embodiment, the apparatus 800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.
[0126] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by the processor 820 of the device 800 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0127] Figure 6 1 is a schematic diagram of the structure of the server in some embodiments of the present invention. The server 1900 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 1922 (for example, one or more processors) and memory 1932, and one or more storage media 1930 (for example, one or more mass storage devices) storing application programs 1942 or data 1944. Among them, the memory 1932 and the storage medium 1930 can be short-term storage or permanent storage. The program stored in the storage medium 1930 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the server. Furthermore, the central processing unit 1922 can be configured to communicate with the storage medium 1930 and execute a series of instruction operations in the storage medium 1930 on the server 1900.
[0128] The server 1900 may also include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input and output interfaces 1958, one or more keyboards 1956, and / or, one or more operating systems 1941, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
[0129] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a device (server or terminal), enables the device to perform Figure 2 or Figure 3 or Figure 4 The data processing method shown.
[0130] A non-temporary computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a device (server or terminal), enables the device to execute a data processing method, the method comprising: for a text corresponding to first audio data, determining a word segment corresponding to the text and the attributes of the word segment; the attributes include: time attribute, position attribute and language attribute; according to the attribute of the word segment, processing the first audio unit corresponding to the word segment in the first audio data to obtain a second audio unit corresponding to the word segment; the processing of the first audio unit includes: at least one of repetition processing, stretching processing, frequency processing and channel processing; according to the position attribute of the word segment and the second audio unit corresponding to the word segment, obtaining the second audio data.
[0131] The embodiment of the present invention discloses A1, a data processing method, the method comprising:
[0132] For the text corresponding to the first audio data, determine the word segmentation corresponding to the text and the attributes of the word segmentation; the attributes include: time attribute, location attribute and language attribute;
[0133] According to the attribute of the word segmentation, a first audio unit corresponding to the word segmentation in the first audio data is processed to obtain a second audio unit corresponding to the word segmentation; the processing of the first audio unit includes: at least one of repetition processing, stretching processing, frequency processing and channel processing;
[0134] The second audio data is obtained according to the position attribute of the word segment and the second audio unit corresponding to the word segment.
[0135] A2. According to the method described in A1, the language attributes include: part of speech and / or sentence components.
[0136] A3. The method according to A1, wherein the processing of the first audio unit corresponding to the word segment in the first audio data comprises:
[0137] Determine a target segmentation according to the attribute of the segmentation; the attribute corresponding to the target segmentation meets the preset condition;
[0138] The first audio unit corresponding to the target word segment in the first audio data is processed.
[0139] A4. The method according to A1, wherein the processing of the first audio unit corresponding to the word segment in the first audio data comprises:
[0140] According to the attribute of the segmented word and the background music corresponding to the segmented word, the first audio unit corresponding to the segmented word in the first audio data is processed so that the obtained second audio unit matches the background music.
[0141] A5. According to the method described in A4, the second audio unit corresponds to a first frequency sequence, the background music corresponds to a second frequency sequence, and the first frequency sequence matches the second frequency sequence.
[0142] A6. The method according to A4, wherein the second audio data is obtained based on the position attribute of the word segment and the second audio unit corresponding to the word segment, comprising:
[0143] Mixing the second audio unit corresponding to the word segment and the background music corresponding to the word segment to obtain mixed audio data;
[0144] According to the position attribute of the word segmentation, the mixed audio data corresponding to the multiple word segmentations are fused to obtain the second audio data.
[0145] A7. According to the method described in A4, adjacent word segments correspond to different channel parameters; and / or the second audio unit and background music corresponding to the same word segment correspond to different channel parameters.
[0146] The embodiment of the present invention discloses B8, a data processing device, the device comprising:
[0147] A word segmentation and attribute determination module, for determining the word segmentation corresponding to the text corresponding to the first audio data, and the attribute of the word segmentation; the attribute includes: time attribute, location attribute and language attribute;
[0148] an audio unit processing module, configured to process a first audio unit corresponding to the segmented word in the first audio data according to the attribute of the segmented word, so as to obtain a second audio unit corresponding to the segmented word; the processing of the first audio unit includes: at least one of repetition processing, stretching processing, frequency processing and channel processing; and
[0149] The second audio data determination module is used to obtain the second audio data according to the position attribute of the word segment and the second audio unit corresponding to the word segment.
[0150] B9. According to the device described in B8, the language attributes include: part of speech and / or sentence components.
[0151] B10. According to the device described in B8, the audio unit processing module includes:
[0152] A target segmentation determination module is used to determine the target segmentation according to the attribute of the segmentation; the attribute corresponding to the target segmentation meets the preset condition; and
[0153] The target word segmentation audio processing module is used to process the first audio unit corresponding to the target word segmentation in the first audio data.
[0154] B11. According to the device described in B8, the audio unit processing module includes:
[0155] The audio unit processing module based on background music is used to process the first audio unit corresponding to the word segment in the first audio data according to the attributes of the word segment and the background music corresponding to the word segment, so that the obtained second audio unit matches the background music.
[0156] B12. According to the device described in B11, the second audio unit corresponds to a first frequency sequence, the background music corresponds to a second frequency sequence, and the first frequency sequence matches the second frequency sequence.
[0157] B13. According to the device described in B11, the second audio data determination module includes:
[0158] a mixing module, configured to mix the second audio unit corresponding to the word segment and the background music corresponding to the word segment to obtain mixed audio data; and
[0159] The fusion module is used to fuse the mixed audio data corresponding to multiple word segments according to the position attribute of the word segmentation to obtain the second audio data.
[0160] B14. According to the device described in B11, adjacent word segments correspond to different channel parameters; and / or, the second audio unit and background music corresponding to the same word segment correspond to different channel parameters.
[0161] The embodiment of the present invention discloses C15, a device for data processing, the device is applied to a server, the device includes a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations:
[0162] For the text corresponding to the first audio data, determine the word segmentation corresponding to the text and the attributes of the word segmentation; the attributes include: time attribute, location attribute and language attribute;
[0163] According to the attribute of the word segmentation, a first audio unit corresponding to the word segmentation in the first audio data is processed to obtain a second audio unit corresponding to the word segmentation; the processing of the first audio unit includes: at least one of repetition processing, stretching processing, frequency processing and channel processing;
[0164] The second audio data is obtained according to the position attribute of the word segment and the second audio unit corresponding to the word segment.
[0165] C16. According to the device described in C15, the language attributes include: part of speech and / or sentence component.
[0166] C17. According to the apparatus described in C15, the processing of the first audio unit corresponding to the word segment in the first audio data comprises:
[0167] Determine a target segmentation according to the attribute of the segmentation; the attribute corresponding to the target segmentation meets the preset condition;
[0168] The first audio unit corresponding to the target word segment in the first audio data is processed.
[0169] C18. According to the apparatus described in C15, the processing of the first audio unit corresponding to the word segment in the first audio data comprises:
[0170] According to the attribute of the segmented word and the background music corresponding to the segmented word, the first audio unit corresponding to the segmented word in the first audio data is processed so that the obtained second audio unit matches the background music.
[0171] C19. According to the device described in C18, the second audio unit corresponds to a first frequency sequence, the background music corresponds to a second frequency sequence, and the first frequency sequence matches the second frequency sequence.
[0172] C20. According to the apparatus described in C18, obtaining the second audio data according to the position attribute of the word segment and the second audio unit corresponding to the word segment comprises:
[0173] Mixing the second audio unit corresponding to the word segment and the background music corresponding to the word segment to obtain mixed audio data;
[0174] According to the position attribute of the word segmentation, the mixed audio data corresponding to the multiple word segmentations are fused to obtain the second audio data.
[0175] C21. According to the device described in C18, adjacent word segments correspond to different channel parameters; and / or, the second audio unit and background music corresponding to the same word segment correspond to different channel parameters.
[0176] An embodiment of the present invention discloses D22, a machine-readable medium having instructions stored thereon, which, when executed by one or more processors, enables the device to execute the data processing method as described in one or more of A1 to A7.
[0177] Those skilled in the art will readily appreciate other embodiments of the invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.
[0178] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
[0179] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
[0180] The data processing method, the data processing device and the device for data processing provided by the present invention are introduced in detail above. The principle and implementation mode of the present invention are explained by using specific examples in this article. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation mode and the scope of application. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A data processing method, characterized in that: The method comprises: For the text corresponding to the first audio data, determine the word segmentation corresponding to the text and the attributes of the word segmentation; the attributes include: time attribute, location attribute and language attribute; the language attribute includes: part of speech and / or sentence component; According to the attribute of the segmentation, the first audio unit corresponding to the segmentation in the first audio data is processed to obtain the second audio unit corresponding to the segmentation, which includes: determining the target segmentation according to the attribute of the segmentation; the attribute corresponding to the target segmentation meets the preset condition; processing the first audio unit corresponding to the target segmentation in the first audio data; the processing of the first audio unit includes: at least one of repetition processing, stretching processing, frequency processing and channel processing; the preset condition includes: at least one of the beginning position of the sentence, the end position of the sentence, the modal particle, and the subject; the processing of the first audio unit corresponding to the segmentation in the first audio data includes: according to the attribute of the segmentation and the background music corresponding to the segmentation, the first audio unit corresponding to the segmentation in the first audio data is processed so that the obtained second audio unit matches the background music; According to the position attribute of the word segmentation and the second audio unit corresponding to the word segmentation, the second audio data is obtained, which includes: mixing the second audio unit corresponding to the word segmentation and the background music corresponding to the word segmentation to obtain mixed audio data; according to the position attribute of the word segmentation, fusing the mixed audio data corresponding to multiple word segments to obtain the second audio data.
2. The method according to claim 1, characterized in that: The second audio unit corresponds to a first frequency sequence, the background music corresponds to a second frequency sequence, and the first frequency sequence matches the second frequency sequence.
3. The method according to claim 1, characterized in that Adjacent word segments correspond to different channel parameters; and / or, the second audio unit and the background music corresponding to the same word segment correspond to different channel parameters.
4. A data processing device, characterized in that: The device comprises: A word segmentation and attribute determination module, for determining the word segmentation corresponding to the text corresponding to the first audio data, and the attributes of the word segmentation; the attributes include: time attribute, location attribute and language attribute; the language attribute includes: part of speech, and / or sentence component; an audio unit processing module, for processing the first audio unit corresponding to the segmentation in the first audio data according to the attribute of the segmentation, so as to obtain the second audio unit corresponding to the segmentation; the processing of the first audio unit includes: at least one of repetition processing, stretching processing, frequency processing and channel processing; the audio unit processing module includes: a target segmentation determination module, for determining the target segmentation according to the attribute of the segmentation; the attribute corresponding to the target segmentation meets the preset condition; a target segmentation audio processing module, for processing the first audio unit corresponding to the target segmentation in the first audio data; the preset condition includes: at least one of the sentence start position, sentence end position, modal particle, and subject; the audio unit processing module includes: an audio unit processing module based on background music, for processing the first audio unit corresponding to the segmentation in the first audio data according to the attribute of the segmentation and the background music corresponding to the segmentation, so that the obtained second audio unit matches the background music; and The second audio data determination module is used to obtain the second audio data according to the position attribute of the word segment and the second audio unit corresponding to the word segment; the second audio data determination module includes: a mixing module, which is used to mix the second audio unit corresponding to the word segment and the background music corresponding to the word segment to obtain mixed audio data; and a fusion module, which is used to fuse the mixed audio data corresponding to multiple word segments according to the position attribute of the word segment to obtain the second audio data.
5. The device according to claim 4, characterized in that The second audio unit corresponds to a first frequency sequence, the background music corresponds to a second frequency sequence, and the first frequency sequence matches the second frequency sequence.
6. The device according to claim 4, characterized in that Adjacent word segments correspond to different channel parameters; and / or, the second audio unit and the background music corresponding to the same word segment correspond to different channel parameters.
7. A device for data processing, characterized in that: The device is applied to a server, and includes a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, and the one or more programs include instructions for performing the following operations: For the text corresponding to the first audio data, determine the word segmentation corresponding to the text and the attributes of the word segmentation; the attributes include: time attribute, location attribute and language attribute; the language attribute includes: part of speech and / or sentence component; According to the attribute of the segmentation, the first audio unit corresponding to the segmentation in the first audio data is processed to obtain the second audio unit corresponding to the segmentation, which includes: determining the target segmentation according to the attribute of the segmentation; the attribute corresponding to the target segmentation meets the preset condition; processing the first audio unit corresponding to the target segmentation in the first audio data; the processing of the first audio unit includes: at least one of repetition processing, stretching processing, frequency processing and channel processing; the preset condition includes: at least one of the beginning position of the sentence, the end position of the sentence, the modal particle, and the subject; the processing of the first audio unit corresponding to the segmentation in the first audio data includes: according to the attribute of the segmentation and the background music corresponding to the segmentation, the first audio unit corresponding to the segmentation in the first audio data is processed so that the obtained second audio unit matches the background music; According to the position attribute of the word segmentation and the second audio unit corresponding to the word segmentation, the second audio data is obtained, which includes: mixing the second audio unit corresponding to the word segmentation and the background music corresponding to the word segmentation to obtain mixed audio data; according to the position attribute of the word segmentation, fusing the mixed audio data corresponding to multiple word segments to obtain the second audio data.
8. The device according to claim 7, characterized in that The second audio unit corresponds to a first frequency sequence, the background music corresponds to a second frequency sequence, and the first frequency sequence matches the second frequency sequence.
9. The device according to claim 7, characterized in that Adjacent word segments correspond to different channel parameters; and / or, the second audio unit and the background music corresponding to the same word segment correspond to different channel parameters.
10. A machine-readable medium having instructions stored thereon, which, when executed by one or more processors, causes an apparatus to execute the data processing method according to any one of claims 1 to 3.
Citation Information
Patent Citations
Audio and video subtitle generation method and apparatus
CN105244022A
Song synthesizing method, device and equipment and storage medium
CN108877766A
