A method and device for processing voice data
By using audio-related motion feature data in the speech separation method, extracting lip motion features from video data, analyzing and processing the target audio data, it solves the problem of failing to effectively fuse scene information in the existing technology, and improves the efficiency of speech separation. efficiency and accuracy.
Patent Information
- Application Number
- CN202010135093.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-03-02
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2040-03-02
AI Technical Summary
Existing speech separation methods fail to effectively integrate vocal scenes, resulting in speech separation efficiency and accuracy being affected.
By obtaining the audio-related motion feature data in the original video data, analyze and extract the target audio data, and perform speech separation processing based on the motion features in the video data, including lip vibration frequency, phase, amplitude and other features, to perform speech enhancement or suppression processing .
It improves the efficiency and accuracy of speech separation, especially in scenarios where multiple people speak at the same time. It can effectively separate the voices of different speaking subjects, and is suitable for multi-person interaction and multi-instruction analysis scenarios.
Smart Images

Figure CN113362849B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and more particularly to a method for processing voice data. The present application also relates to a voice data processing device and an electronic device. Background Art
[0002] In most voice interaction scenarios, the collected audio signal contains not only the target speaker's voice, but also the voice interference of others and noise interference. The goal of speech separation is to separate the target speaker's voice from these interferences.
[0003] Depending on the interference, speech separation can be divided into the following three types: when the interference is noise, the process of speech separation can be called "speech enhancement"; when the interference is the speech of others, the process of speech separation can be called "multi-speaker separation"; when the interference is the reflected wave of the target speaker's own voice, the process of speech separation can be called "dereverberation".
[0004] Depending on the number of sensors or microphones, speech separation can be divided into monaural separation methods (single microphone) and array separation methods (multiple microphones). Typical monaural separation methods are speech enhancement and computational auditory scene analysis (CASA). In array separation methods, an array consisting of two or more microphones uses a spatial filter to enhance the signal arriving from a specific direction through an appropriate array structure, thereby reducing interference from other directions.
[0005] However, existing speech separation methods are only implemented based on audio feature data of speech or noise, and the speech separation process is not effectively integrated with the vocalization scene, which affects the efficiency and accuracy of speech separation in the vocalization scene. Summary of the invention
[0006] The embodiments of the present application provide an audio data processing method, device and electronic device to solve the problem that the existing speech separation process affects the efficiency and accuracy of speech separation due to the lack of effective integration with the sound scene.
[0007] The present application provides an audio data processing method, including:
[0008] Obtaining original audio data corresponding to the original video data;
[0009] Obtaining audio-related motion feature data in the original video data, wherein the audio-related motion feature data refers to motion state data associated with a sound event corresponding to the original video data;
[0010] Analyze and obtain target audio data from the original audio data according to the audio-related motion feature data;
[0011] The target audio data is processed according to a predetermined audio processing method.
[0012] Optionally, the analyzing and obtaining the target audio data from the original audio data according to the audio-related motion feature data comprises: obtaining target audio feature data matching the audio-related motion feature data based on the original audio data;
[0013] The audio data corresponding to the target audio feature data in the original audio data is determined as the target audio data.
[0014] Optionally, obtaining target audio feature data matching the audio-related motion feature data based on the original audio data includes:
[0015] Target audio feature data matching the audio-related motion feature data is obtained from a plurality of audio feature data corresponding to the original audio data.
[0016] Optionally, obtaining the audio-related motion feature data in the original video data includes: obtaining lip motion feature data in the original video data;
[0017] The obtaining of target audio feature data matching the audio-related motion feature data from a plurality of audio feature data corresponding to the original audio data includes: obtaining target audio feature data matching the lip motion feature data from the audio feature data corresponding to the original audio data.
[0018] Optionally, the lip movement feature data includes:
[0019] Lip vibration frequency data;
[0020] The step of obtaining target audio feature data matching the lip movement feature data from the plurality of audio feature data corresponding to the original audio data comprises:
[0021] The lip vibration frequency data is matched with the speech rate feature data in the plurality of audio feature data to obtain target speech rate feature data matching the lip vibration frequency data.
[0022] Optionally, the lip movement feature data includes:
[0023] Lip vibration phase data;
[0024] The step of obtaining target audio feature data matching the lip movement feature data from the plurality of audio feature data corresponding to the original audio data comprises:
[0025] The lip vibration phase data is matched with the speech phase feature data in the multiple audio feature data to obtain target speech phase feature data that matches the lip vibration phase data.
[0026] Optionally, the lip movement feature data includes:
[0027] Lip vibration amplitude data;
[0028] The step of obtaining target audio feature data matching the lip movement feature data from the plurality of audio feature data corresponding to the original audio data comprises:
[0029] The lip vibration amplitude data is matched with the speech amplitude feature data in the multiple audio feature data to obtain target speech amplitude feature data that matches the lip vibration amplitude data.
[0030] Optionally, obtaining the audio-related motion feature data in the original video data includes: obtaining a plurality of audio-related motion feature data corresponding to a plurality of sound-emitting subjects in the original video data;
[0031] Correspondingly, the step of analyzing the original audio data to obtain target audio data according to the audio-related motion feature data includes:
[0032] Determine a target sound-making subject from among the multiple sound-making subjects;
[0033] Obtaining target audio-related motion feature data corresponding to the target sound-making subject;
[0034] According to the target audio-related motion feature data, target audio data is obtained by analyzing the original audio data.
[0035] Optionally, obtaining audio-related motion feature data in the original video data includes: obtaining audio-related motion feature data corresponding to a unique sound-making subject in the original video data.
[0036] Optionally, obtaining original voice data corresponding to the original video data includes: obtaining original voice data corresponding to the original video data in input time.
[0037] Optionally, obtaining original voice data corresponding to the original video data at input time includes: obtaining original voice data corresponding to the original video data at input time and coming from multiple sound-generating subjects.
[0038] Optionally, the original video data includes some or all of the multiple sound-making subjects.
[0039] Optionally, processing the target audio data according to a predetermined audio processing method includes:
[0040] Obtaining voice usage level information corresponding to the target audio data;
[0041] According to the voice usage level information, the sound signal of the target voice data is enhanced or suppressed.
[0042] Optionally, obtaining the voice usage level information corresponding to the target audio data includes:
[0043] Obtaining attribute information of a sound-producing subject corresponding to the target audio data;
[0044] According to the attribute information of the sound-making subject corresponding to the target audio data, the voice usage level information corresponding to the target audio data is obtained.
[0045] Optionally, obtaining the attribute information of the sound-making subject corresponding to the target audio data includes:
[0046] Performing frame processing on the original video data to obtain a target image;
[0047] Detecting the target image to obtain a facial image corresponding to the audio-related motion feature data in the target image;
[0048] Extracting features from the facial image to obtain facial feature data;
[0049] The facial feature data is matched with a predetermined facial feature database to obtain information of a subject corresponding to the facial feature data, and the information of the subject corresponding to the facial feature data is determined as attribute information of a sound-making subject corresponding to the target audio data.
[0050] Optionally, the method further includes: intercepting video data corresponding to the audio-related motion feature data in the original video data to obtain target video data corresponding to the target audio data.
[0051] Optionally, the method further includes: storing the target audio data and the target video data in a mutually associated manner.
[0052] Optionally, the method further includes: combining multiple target video data corresponding to the same sound-making subject in the original video data to obtain a video animation corresponding to the same sound-making subject.
[0053] Optionally, the method further includes: performing camera tracking on the sound-making subject corresponding to the target audio data.
[0054] The present application also provides a voice data processing device, including:
[0055] An original voice data obtaining unit, used to obtain original voice data corresponding to the original video data;
[0056] An audio-related motion feature data obtaining unit, used to obtain audio-related motion feature data in the original video data;
[0057] A target voice data obtaining unit, configured to obtain target voice data from the original voice data by analyzing the original voice data according to the audio-related motion feature data;
[0058] The target voice data processing unit is used to process the target voice data according to a predetermined voice processing method.
[0059] An embodiment of the present application further provides an electronic device, characterized in that it includes a processor and a memory; wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the following operations:
[0060] Obtaining audio-related motion feature data in the original video data, wherein the audio-related motion feature data refers to motion state data associated with a sound event corresponding to the original video data;
[0061] Obtaining original audio data corresponding to the original video data;
[0062] Analyze and obtain target audio data from the original audio data according to the audio-related motion feature data;
[0063] The target audio data is processed according to a predetermined audio processing method.
[0064] Compared with the prior art, the embodiments of the present application have the following advantages:
[0065] The audio data processing method provided in the embodiment of the present application includes the following steps: obtaining the original audio data corresponding to the original video data; obtaining the audio-related motion feature data in the original video data, the audio-related motion feature data refers to the motion state data associated with the sound event corresponding to the original video data; analyzing and obtaining the target audio data from the original audio data according to the audio-related motion feature data; and processing the target audio data according to a predetermined audio processing method. By using this method, the audio-related motion feature data in the original video data can be used to obtain the corresponding target audio data from the original audio data in the current scene, and the target audio data can be data enhanced or suppressed in combination with the specific scene to separate the voices of different sounding subjects. This method applies image data to the scene of voice separation, making the voice separation process more efficient and accurate. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] Figure 1 is a flow chart of the audio data processing method provided by the first embodiment of the present application;
[0067] Figure 1-A is a schematic diagram of obtaining target audio data provided by the first embodiment of the application;
[0068] Figure 2 is a unit block diagram of an audio data processing device provided in a second embodiment of the present application;
[0069] Figure 3 It is a schematic diagram of the logical structure of an electronic device provided in the third embodiment of the present application. DETAILED DESCRIPTION
[0070] Many specific details are described in the following description to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present application, so the present application is not limited by the specific implementation disclosed below.
[0071] In order to reduce the complexity of the speech separation process and improve the speech separation efficiency, the present application provides an audio data processing method, an audio data processing device and an electronic device corresponding to the method. The following embodiments are provided to describe the method, device and electronic device in detail.
[0072] The first embodiment of the present application provides an audio data processing method, the application subject of the method can be a computing device application for realizing speech separation. Figure 1 The following is a flowchart of the audio data processing method provided in the first embodiment of the present application. Figure 1The method provided in this embodiment is described in detail. The embodiments described below are used to explain the principle of the method and are not intended to be limiting for actual use.
[0073] like Figure 1 As shown, the audio data processing method provided in this embodiment includes the following steps:
[0074] S101, obtaining original audio data corresponding to original video data.
[0075] This step is used to obtain the original audio data corresponding to the original video data, that is, to obtain the original audio data corresponding to the original video data in recording time. The sound subject corresponding to the original audio data may appear in whole or in part in the above original video data.
[0076] In this embodiment, the original audio data obtained is preferably original voice data that corresponds to the above-mentioned original video data in recording time and comes from multiple sound-making subjects. For example, in a scenario where multiple users order food at the same time, or a multi-person interaction scenario of an intelligent service robot (where the intelligent robot speaks to multiple people at the same time), the original audio data obtained is mixed voice from multiple sound-making subjects. For another example, in a symphony performance scenario, the original audio data obtained is a mixed music produced by multiple musicians operating multiple instruments.
[0077] S102, obtaining audio-related motion feature data in the original video data.
[0078] After obtaining the original audio data corresponding to the original video data in the above step, this step is used to obtain audio-related motion feature data in the above original video data, and the audio-related motion feature data refers to the motion state data associated with the sound event corresponding to the original video data.
[0079] In this embodiment, the original video data is the video data recorded synchronously when the voice is recorded. For example, in the intelligent service scenario, the original video data may be the video data containing multiple users captured by the intelligent robot providing intelligent services during the human-computer interaction process, and the audio-related motion feature data is the motion state data associated with the user's voice, such as the lip shape changes and lip vibrations corresponding to the user's speech. For another example, in a symphony performance scenario, the original video data may be the image sequence containing the performers captured by the audio and video recording device, and the audio-related motion feature data is the motion state data associated with the sound of the instrument, such as the click and stretch of the instrument by each musician during the music generation process.
[0080] It should be noted that the above-mentioned process of obtaining audio-related motion feature data is not limited to human-computer interaction scenarios or symphony performance scenarios under intelligent service scenarios. In audio and video recording scenarios, when any sound-making subject makes a sound, as long as the motion state associated with the sound can be captured, the above-mentioned process of obtaining audio-related motion feature data can be applied, and is not limited here.
[0081] In this embodiment, the sound subject captured in the original video data may be part or all of the sound subjects in the current sound scene, and obtaining the audio-related motion feature data in the original video data may refer to: obtaining multiple audio-related motion feature data corresponding to multiple sound subjects in the original video data, or may refer to: obtaining the audio-related motion feature data corresponding to the only sound subject in the original video data. For example, in the intelligent service scenario, when multiple users are within the capture range of the intelligent robot and speak to the intelligent robot, the motion state data such as the mouth shape change and lip vibration of the multiple users can be obtained; when multiple users participate in the human-computer interaction process (multiple users speak to the intelligent robot in the same time period), only one user is within the capture range of the intelligent robot and speaks to the intelligent robot, then the motion state data such as the mouth shape change and lip vibration of the user is the above-mentioned audio-related motion feature data, or, when only a single user speaks to the intelligent robot and the user is within the capture range of the intelligent robot, the motion state data such as the mouth shape change and lip vibration of the single user is the audio-related motion feature data.
[0082] In the present embodiment, the above-mentioned obtaining of audio-related motion feature data in the original video data may refer to: obtaining lip motion feature data in the original video data, and the lip motion feature data may be one or more of lip vibration frequency data, lip vibration phase data, and lip vibration amplitude data. Among them, the lip vibration frequency data is used to indicate the speech rate of the sound-generating subject, the lip vibration phase data is used to indicate the time point of the lip opening and closing of the sound-generating subject, and the lip vibration amplitude data is used to indicate the amplitude of the lip opening and closing of the sound-generating subject. In the present embodiment, the lip vibration frequency data, lip vibration phase data, and lip vibration amplitude data are all feature vectors obtained after feature extraction of the lip image in the original video data.
[0083] It should be noted that, in this embodiment, the order of implementing the above steps S101 and S102 is not limited, that is, the original audio data corresponding to the original video data can also be obtained after obtaining the audio-related motion feature data in the original video data.
[0084] S103: Analyze the original audio data to obtain target audio data according to the audio-related motion feature data.
[0085] After obtaining the original audio data corresponding to the original video data and the audio-related motion feature data in the original video data in the above steps, this step is used to analyze and obtain the target audio data from the original audio data based on the above audio-related motion feature data, that is, to perform speech separation on the original audio data based on the information obtained above, and obtain the target audio data corresponding to the specific sound-making subject in the original video data.
[0086] In this embodiment, the expression characteristics of sound on the image (sound spectrum) can be displayed by the movement of the lips, that is, for different sound-making subjects, their speaking speed, the starting time of speaking and the intensity of the voice can be relatively reflected by their lip movements. When multiple sounding subjects are speaking, within a certain time interval, the relative intensity, relative speed and relative phase of the speech from the multiple sounding subjects can be distinguished by the difference in lip movement. For each sounding subject among the multiple sounding subjects speaking at the same time, the relative relationship between the speed of speaking and the lip vibration frequency is unique. For example, among the multiple sounding subjects, the speed of speaking of sounding subject A relative to sounding subject B can be reflected by the difference between the lip vibration frequency of sounding subject A and the lip vibration frequency of sounding subject B, the speaking start time of sounding subject A relative to sounding subject B can be reflected by the difference between the lip vibration phase of sounding subject A and the lip vibration phase of sounding subject B, the intensity of the speech of sounding subject A relative to sounding subject B can be reflected by the difference between the lip opening and closing amplitude of sounding subject A and the lip opening and closing amplitude of sounding subject B, and the above relative relationship between sounding subject A and sounding subject B remains unchanged within a certain time interval.
[0087] In this embodiment, when the audio-related motion feature data obtained in the above step S101 are multiple audio-related motion feature data corresponding to multiple sound-making subjects, the specific method of analyzing and obtaining the target audio data from the original audio data according to the audio-related motion feature data in this step can be: determining the target sound-making subject from the multiple sound-making subjects, for example, determining the sound-making user who plays a dominant role among the multiple sound-making users according to the positions, postures, facial expressions, estimated identity information, etc. of the multiple sound-making users appearing in the original video data; obtaining the target audio-related motion feature data corresponding to the target sound-making subject, for example, obtaining one or more of the lip vibration frequency data, lip vibration phase data, and lip vibration amplitude data of the above-mentioned dominant sound-making user; and obtaining the target audio data by analyzing from the above-mentioned original audio data according to the obtained target audio-related motion feature data.
[0088] It should be noted that, when the audio-related motion feature data obtained above is the audio-related motion feature data corresponding to a unique sound-making subject, the audio-related motion feature data is the target audio-related motion feature data.
[0089] In this embodiment, the target audio data is obtained by analyzing the original audio data according to the target audio-related motion feature data, specifically including: obtaining the target audio feature data matching the target audio-related motion feature data based on the original audio data, and the process specifically refers to: obtaining the target audio feature data matching the target audio-related motion feature data from the multiple audio feature data corresponding to the original audio data, and the multiple audio feature data may refer to the audio features such as voice pitch, loudness, timbre, amplitude, phase, frequency, and speech speed from multiple sound-emitting subjects contained in the original audio data. In this embodiment, obtaining the target audio feature data matching the target audio-related motion feature data from the multiple audio feature data corresponding to the original audio data specifically refers to: obtaining the target audio feature data matching the lip motion feature data from the audio feature data corresponding to the original audio data; and determining the audio data corresponding to the target audio feature data in the original audio data as the target audio data.
[0090] In this embodiment, when the above-mentioned lip movement feature data is lip vibration frequency data, the above-mentioned target audio feature data matching the lip movement feature data obtained from the multiple audio feature data corresponding to the original audio data may refer to: matching the lip vibration frequency data with the speech rate feature data in the multiple audio feature data, for example, matching with multiple speech rate feature data corresponding to multiple sound-making subjects respectively, to obtain target speech rate feature data matching the lip vibration frequency data, where the speech rate is the speed at which language symbols are presented in unit time.
[0091] When the above-mentioned lip movement feature data is lip vibration phase data, the above-mentioned obtaining of target audio feature data matching the lip movement feature data from multiple audio feature data corresponding to the original audio data may refer to: matching the lip vibration phase data with the speech phase feature data in the above-mentioned multiple audio feature data to obtain target speech phase feature data matching the lip vibration phase data.
[0092] When the above-mentioned lip movement feature data is lip vibration amplitude data, the above-mentioned obtaining of target audio feature data matching the lip movement feature data from multiple audio feature data corresponding to the original audio data may refer to: matching the lip vibration amplitude data with the speech amplitude feature data in the multiple audio feature data to obtain target speech amplitude feature data matching the lip vibration amplitude data.
[0093] In this embodiment, if Figure 1-A As shown, the above-mentioned process of analyzing and obtaining target audio data from original audio data according to audio-related motion feature data can be implemented through a pre-trained deep neural network model, that is, the process of obtaining target audio feature data matching the lip motion feature data from the audio feature data corresponding to the original audio data, and determining the audio data corresponding to the above-mentioned target audio feature data in the original audio data as the target audio data can be implemented through the internal algorithm of the pre-trained deep neural network model. The deep neural network model uses lip motion feature data and audio feature data as training samples for model training. For example, the lip motion feature data extracted from the lip image sequences of a large number of sound-making subjects and the audio feature data corresponding to the original audio data from the large number of sound-making subjects are used as training samples for model training. The trained deep neural network model can output the target audio data based on the input lip motion feature data and audio feature data.
[0094] S104: Process the target audio data according to a predetermined audio processing method.
[0095] After the target audio data is obtained by analyzing the original audio data according to the audio-related motion feature data in the above step, this step is used to process the target audio data according to a predetermined audio processing method. That is, the target audio data is strengthened or weakened according to the voice usage requirements of the target audio data in the current scene.
[0096] In this embodiment, the target audio data is processed according to a predetermined audio processing method, which specifically includes the following contents:
[0097] First, obtain the voice usage level information corresponding to the target audio data, which is used to indicate the importance of the target audio data in the current scene. The voice usage level corresponding to the target audio data can be determined in a variety of ways, for example, by determining the voice usage level corresponding to the target audio data through the audio information such as intensity and pitch corresponding to the target audio data (for example, the greater the intensity of the target audio data, the higher the corresponding voice usage level), or by determining the voice usage level corresponding to the target audio data through the semantic information corresponding to the target audio data (by performing lip recognition on the target audio data based on the lip shape change information in the audio-related motion feature data, obtaining the semantic information corresponding to the target audio data, and determining the importance of the instruction information corresponding to the semantic information, thereby determining the voice usage level information corresponding to the target audio data), or by determining the voice usage level corresponding to the target audio data through the attribute information of the sound-emitting subject corresponding to the target audio data (the identity information, background information, corresponding role information, etc. of the sound-emitting subject). In this embodiment, it is preferred to determine the voice usage level corresponding to the target audio data through the attribute information of the sound-emitting subject corresponding to the target audio data, and the process specifically includes the following contents:
[0098] A. Obtain attribute information of the sound-making subject corresponding to the target audio data. For example, perform frame processing on the above-mentioned original video data to obtain a target image containing a human body contour in multiple video images; perform three-dimensional face detection on the target image to obtain a facial image in the target image corresponding to the above-mentioned audio-related motion feature data. For example, the above-mentioned audio-related motion feature data is the lip movement feature data corresponding to user A when speaking, and the obtained facial image is the facial image of user A; perform feature extraction on the facial image to obtain facial feature data; match the extracted facial feature data with a predetermined facial feature database, which may contain a correspondence between facial feature data and user attribute information. Through this matching process, the attribute information of the user corresponding to the facial feature data (identity information, background information, corresponding role information, etc.) can be obtained, and the attribute information is determined as the attribute information of the sound-making subject corresponding to the above-mentioned target audio data.
[0099] B. According to the attribute information of the sound-producing subject corresponding to the above-mentioned target audio data, obtain the voice usage level information corresponding to the target audio data. For example, if the identity information of the sound-producing subject corresponding to the target audio data is father, then determine that its voice usage level is high.
[0100] Secondly, according to the speech usage level information corresponding to the above-mentioned target audio data, the sound signal of the target audio data is subjected to speech enhancement processing or speech suppression processing. For example, when the speech usage level information corresponding to the target audio data is of a high level (high importance), the target audio data is subjected to speech enhancement processing. Specifically, the spectral subtraction method can be used to perform speech enhancement processing on the target audio data in the above-mentioned original audio data. Speech enhancement means that when the speech signal corresponding to the target sounding subject is interfered with or submerged by noise or other sounding subjects, the speech signal corresponding to the target sounding subject is extracted from the noise background, so as to achieve the purpose of suppressing and reducing noise interference, that is, extracting a pure original speech signal from noisy speech, or extracting a target speech signal for a specific purpose.
[0101] In this embodiment, the corresponding relationship between the acquired target audio data and the audio-related motion feature data can be used to intercept the video data corresponding to the audio-related motion feature data in the original video data, and the intercepted video data is the target video data corresponding to the target audio data, so as to achieve the matching between the voice data and the video data. For example, if the audio-related motion feature data is the lip motion feature data of user A, it means that the sounding subject of the target audio data is user A, and the video clip of user A in the original video data is intercepted, and the intercepted video clip matches the above-mentioned target audio data. In the conference recording scene with multiple participants, the above-mentioned matching target audio data and target video data can be stored in an interrelated manner to realize the automatic recording of the conference content. Further, after the above-mentioned attribute information (identity information, background information, corresponding role information, etc.) of the sounding subject corresponding to the target audio data is obtained, the target audio data can also be semantically recognized to obtain its corresponding semantic information, and the semantic information and the attribute information of the above-mentioned sounding subject are associated and recorded, so as to realize the automatic recording of the conference content text in the conference scene.
[0102] In this embodiment, the sound-making subject corresponding to the target audio data can also be tracked by camera. For example, for audio and video recording scenarios, the correspondence between the target audio data and the audio-related motion feature data can be used to track user A by camera, and the video data corresponding to the audio data of user A can be captured to meet the scene requirements during the audio and video recording process.
[0103] After the video data corresponding to the audio-related motion feature data in the original video data is intercepted based on the correspondence between the target audio data and the audio-related motion feature data, multiple target video data corresponding to the same sound-making subject in the original video data can be combined to obtain the video animation corresponding to the same sound-making subject. For example, the video clips of user A in the original video data can be combined to obtain the video animation corresponding to the sound-making subject.
[0104] Existing speech separation methods are only implemented based on audio feature data of speech or noise. In scenarios where image data and audio data are input synchronously, existing speech separation methods have limitations because they do not combine the use of image data related to the sound event. For example, in a sound scene where facial image data of the sound-making subject can be obtained, existing speech separation methods do not consider the correlation between the facial image data of the sound-making subject and the sound emitted in the same time dimension. Therefore, the facial image data in this scenario is not effectively utilized, and the speech separation process is not effectively integrated with the sound scene, which affects the efficiency and accuracy of speech separation in this sound scene.
[0105] The audio data processing method provided in this embodiment obtains the audio-related motion feature data in the original video data after obtaining the original audio data corresponding to the original video data. The audio-related motion feature data refers to the motion state data associated with the sound event corresponding to the original video data, and according to the audio-related motion feature data, the target audio data is analyzed from the original audio data to obtain the target audio data, and finally, the target audio data is processed according to the predetermined audio processing method. By using this method, in the scene where the audio data and the video data are input synchronously, the audio-related motion feature data extracted from the original video data can be used to obtain the corresponding target audio data from the original audio data in the current scene, and the target audio data is processed by voice enhancement or voice suppression in combination with the specific use scenario of the audio data, so as to separate the voices of different sounding subjects. The method applies the motion feature data related to the sound extracted from the original video data to the scene of voice separation, making the process of voice separation simpler, more efficient, and more accurate. The method combines the use of video data and audio data in the process of voice separation, and has strong applicability for the command analysis scene where multiple people issue multiple different commands at the same time.
[0106] The above-mentioned first embodiment provides an audio data processing method. Correspondingly, the second embodiment of the present application also provides an audio data processing device. Since the device embodiment is basically similar to the method embodiment, the description is relatively simple. For details of the relevant technical features, please refer to the corresponding description of the method embodiment provided above. The following description of the device embodiment is merely illustrative.
[0107] Please refer to Figure 2 To understand this embodiment, Figure 2 A unit block diagram of the device provided in this embodiment, such as Figure 2 As shown, the device provided in this embodiment includes:
[0108] The original audio data obtaining unit 201 is used to obtain the original voice data corresponding to the original video data;
[0109] The audio-related motion feature data obtaining unit 202 is used to obtain the audio-related motion feature data in the original video data;
[0110] The target audio data obtaining unit 203 is used to obtain the target audio data by analyzing the original audio data according to the audio-related motion feature data;
[0111] The target audio data processing unit 204 is used to process the target audio data according to a predetermined audio processing method.
[0112] Analyzing the original audio data to obtain target audio data according to the audio-related motion feature data includes: obtaining target audio feature data matching the audio-related motion feature data based on the original audio data;
[0113] The audio data corresponding to the target audio feature data in the original audio data is determined as the target audio data.
[0114] Based on the original audio data, target audio feature data matching the audio-related motion feature data is obtained, including:
[0115] Target audio feature data matching the audio-related motion feature data is obtained from a plurality of audio feature data corresponding to the original audio data.
[0116] Obtaining audio-related motion feature data in the original video data, including: obtaining lip motion feature data in the original video data;
[0117] Obtaining target audio feature data matching the audio-related motion feature data from multiple audio feature data corresponding to the original audio data, including: obtaining target audio feature data matching the lip motion feature data from the audio feature data corresponding to the original audio data.
[0118] Lip movement feature data includes:
[0119] Lip vibration frequency data;
[0120] Obtaining target audio feature data matching the lip movement feature data from the multiple audio feature data corresponding to the original audio data, including:
[0121] The lip vibration frequency data is matched with the speech rate feature data in the plurality of audio feature data to obtain target speech rate feature data matching the lip vibration frequency data.
[0122] Lip movement feature data includes:
[0123] Lip vibration phase data;
[0124] Obtaining target audio feature data matching the lip movement feature data from the multiple audio feature data corresponding to the original audio data, including:
[0125] The lip vibration phase data is matched with the speech phase feature data in the plurality of audio feature data to obtain target speech phase feature data that matches the lip vibration phase data.
[0126] Lip movement feature data includes:
[0127] Lip vibration amplitude data;
[0128] Obtaining target audio feature data matching the lip movement feature data from the multiple audio feature data corresponding to the original audio data, including:
[0129] The lip vibration amplitude data is matched with the speech amplitude feature data in the plurality of audio feature data to obtain target speech amplitude feature data matching the lip vibration amplitude data.
[0130] Obtaining audio-related motion feature data in the original video data, including: obtaining a plurality of audio-related motion feature data corresponding to a plurality of sound-emitting subjects in the original video data;
[0131] Correspondingly, according to the audio-related motion feature data, the target audio data is obtained by analyzing the original audio data, including:
[0132] Determine a target sounding subject from among multiple sounding subjects;
[0133] Obtaining target audio-related motion feature data corresponding to the target sound-producing subject;
[0134] According to the target audio related motion feature data, the target audio data is obtained by analyzing the original audio data.
[0135] Obtaining audio-related motion feature data in the original video data includes: obtaining audio-related motion feature data corresponding to a unique sound-making subject in the original video data.
[0136] Obtaining original voice data corresponding to original video data includes: obtaining original voice data corresponding to the original video data in input time.
[0137] Obtaining original voice data corresponding to the original video data at input time includes: obtaining original voice data corresponding to the original video data at input time and coming from multiple sound-generating subjects.
[0138] The original video data includes some or all of the multiple sound-generating subjects.
[0139] Process the target audio data according to a predetermined audio processing method, including:
[0140] Obtaining voice usage level information corresponding to target audio data;
[0141] According to the voice usage level information, the sound signal of the target voice data is enhanced or suppressed.
[0142] Obtaining voice usage level information corresponding to the target audio data, including:
[0143] Obtaining attribute information of a sound-producing subject corresponding to target audio data;
[0144] According to the attribute information of the sound-producing subject corresponding to the target audio data, the voice usage level information corresponding to the target audio data is obtained.
[0145] Obtaining the attribute information of the sound subject corresponding to the target audio data, including:
[0146] Perform frame processing on the original video data to obtain the target image;
[0147] Detecting the target image to obtain a facial image corresponding to the audio-related motion feature data in the target image;
[0148] Extract features from facial images to obtain facial feature data;
[0149] The facial feature data is matched with a predetermined facial feature database to obtain information of a subject corresponding to the facial feature data, and the information of the subject corresponding to the facial feature data is determined as attribute information of a sounding subject corresponding to the target audio data.
[0150] The device also includes: a video data interception unit, which is used to intercept the video data corresponding to the audio-related motion feature data in the original video data to obtain the target video data corresponding to the target audio data.
[0151] The device also includes: an associated storage unit, which is used to store the target audio data and the target video data in a mutually associated manner.
[0152] The device also includes: a video animation obtaining unit, which is used to combine multiple target video data corresponding to the same sound-making subject in the original video data to obtain the video animation corresponding to the same sound-making subject.
[0153] The device also includes: a camera tracking unit, which is used to perform camera tracking on a sound-making subject corresponding to the target audio data.
[0154] By using the device, in the scenario where audio data and video data are input synchronously, the audio-related motion feature data in the input original video data can be used to obtain the corresponding target audio data from the original audio data in the current scenario, and the target audio data can be enhanced or suppressed in combination with the specific usage scenario of the audio data, so as to separate the voices of different sounding subjects. The device applies the motion feature data related to the sound in the video data to the voice separation scenario, making the voice separation process simpler, more efficient, and more accurate. The device combines video and voice data in the process of voice separation, and has strong applicability to the command analysis scenario where multiple people issue multiple different commands at the same time.
[0155] In the above-mentioned embodiments, an audio data processing method and an audio data processing device are provided. In addition, the third embodiment of the present application also provides an electronic device. Since the electronic device embodiment is basically similar to the method embodiment, the description is relatively simple. For details of the relevant technical features, please refer to the corresponding description of the method embodiment provided above. The following description of the electronic device embodiment is only illustrative. The electronic device embodiment is as follows:
[0156] Please refer to Figure 3 To understand this embodiment, Figure 3 A schematic diagram of an electronic device provided in this embodiment.
[0157] like Figure 3 As shown, the electronic device includes: a processor 301; a memory 302;
[0158] The memory 302 is used to store a program for audio data processing. When the program is read and executed by the processor, the following operations are performed:
[0159] Obtaining original audio data corresponding to the original video data;
[0160] Obtaining audio-related motion feature data in the original video data, where the audio-related motion feature data refers to motion state data associated with a sound event corresponding to the original video data;
[0161] Analyze and obtain target audio data from the original audio data according to the audio-related motion feature data;
[0162] The target audio data is processed according to a predetermined audio processing method.
[0163] The above-mentioned obtaining the target audio data by analyzing the original audio data according to the audio-related motion feature data includes: obtaining the target audio feature data matching the audio-related motion feature data based on the original audio data;
[0164] The audio data corresponding to the target audio feature data in the original audio data is determined as the target audio data.
[0165] Based on the original audio data, target audio feature data matching the audio-related motion feature data is obtained, including:
[0166] Target audio feature data matching the audio-related motion feature data is obtained from a plurality of audio feature data corresponding to the original audio data.
[0167] Obtaining audio-related motion feature data in the original video data, including: obtaining lip motion feature data in the original video data;
[0168] Obtaining target audio feature data matching the audio-related motion feature data from multiple audio feature data corresponding to the original audio data, including: obtaining target audio feature data matching the lip motion feature data from the audio feature data corresponding to the original audio data.
[0169] Lip movement feature data includes:
[0170] Lip vibration frequency data;
[0171] Obtaining target audio feature data matching the lip movement feature data from the multiple audio feature data corresponding to the original audio data, including:
[0172] The lip vibration frequency data is matched with the speech rate feature data in the plurality of audio feature data to obtain target speech rate feature data matching the lip vibration frequency data.
[0173] Lip movement feature data includes:
[0174] Lip vibration phase data;
[0175] Obtaining target audio feature data matching the lip movement feature data from the multiple audio feature data corresponding to the original audio data, including:
[0176] The lip vibration phase data is matched with the speech phase feature data in the plurality of audio feature data to obtain target speech phase feature data that matches the lip vibration phase data.
[0177] Lip movement feature data includes:
[0178] Lip vibration amplitude data;
[0179] Obtaining target audio feature data matching the lip movement feature data from the multiple audio feature data corresponding to the original audio data, including:
[0180] The lip vibration amplitude data is matched with the speech amplitude feature data in the plurality of audio feature data to obtain target speech amplitude feature data matching the lip vibration amplitude data.
[0181] Obtaining audio-related motion feature data in the original video data, including: obtaining a plurality of audio-related motion feature data corresponding to a plurality of sound-emitting subjects in the original video data;
[0182] Correspondingly, according to the audio-related motion feature data, the target audio data is obtained by analyzing the original audio data, including:
[0183] Determine a target sounding subject from among multiple sounding subjects;
[0184] Obtaining target audio-related motion feature data corresponding to the target sound-producing subject;
[0185] According to the target audio related motion feature data, the target audio data is obtained by analyzing the original audio data.
[0186] Obtaining audio-related motion feature data in the original video data includes: obtaining audio-related motion feature data corresponding to a unique sound-making subject in the original video data.
[0187] Obtaining original voice data corresponding to original video data includes: obtaining original voice data corresponding to the original video data in input time.
[0188] Obtaining original voice data corresponding to the original video data at input time includes: obtaining original voice data corresponding to the original video data at input time and coming from multiple sound-generating subjects.
[0189] The original video data includes some or all of the multiple sound-generating subjects.
[0190] Process the target audio data according to a predetermined audio processing method, including:
[0191] Obtaining voice usage level information corresponding to target audio data;
[0192] According to the voice usage level information, the sound signal of the target voice data is enhanced or suppressed.
[0193] Obtaining voice usage level information corresponding to the target audio data, including:
[0194] Obtaining attribute information of a sound-producing subject corresponding to target audio data;
[0195] According to the attribute information of the sound-producing subject corresponding to the target audio data, the voice usage level information corresponding to the target audio data is obtained.
[0196] Obtaining the attribute information of the sound subject corresponding to the target audio data, including:
[0197] Perform frame processing on the original video data to obtain the target image;
[0198] Detecting the target image to obtain a facial image corresponding to the audio-related motion feature data in the target image;
[0199] Extract features from facial images to obtain facial feature data;
[0200] The facial feature data is matched with a predetermined facial feature database to obtain information of a subject corresponding to the facial feature data, and the information of the subject corresponding to the facial feature data is determined as attribute information of a sounding subject corresponding to the target audio data.
[0201] The method further includes: intercepting video data corresponding to the audio-related motion feature data in the original video data to obtain target video data corresponding to the target audio data.
[0202] The method further includes: storing the target audio data and the target video data in a mutually associated manner.
[0203] The method also includes: combining a plurality of target video data corresponding to the same sound-making subject in the original video data to obtain a video animation corresponding to the same sound-making subject.
[0204] The method also includes: performing camera tracking on the sound-making subject corresponding to the target audio data.
[0205] By using the electronic device, in the scenario where audio data and video data are input synchronously, the audio-related motion feature data in the input original video data can be used to obtain the corresponding target audio data from the original audio data in the current scenario, and the target audio data can be enhanced or suppressed in combination with the specific usage scenario of the audio data to separate the voices of different sounding subjects. During the use of the electronic device, the motion feature data related to the sound in the video data is applied to the voice separation scenario, making the voice separation process simpler, more efficient, and more accurate. In addition, the combination of video data and voice data in the voice separation process has strong applicability to the command analysis scenario where multiple people issue multiple different commands at the same time.
[0206] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0207] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0208] 1. Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include non-transitory media such as modulated data signals and carrier waves.
[0209] 2. Those skilled in the art should understand that the embodiments of the present application can be provided as methods, systems or computer program products. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0210] Although the present application is disclosed as above in the form of a preferred embodiment, it is not intended to limit the present application. Any technical personnel in this field may make possible changes and modifications without departing from the spirit and scope of the present application. Therefore, the scope of protection of the present application shall be based on the scope defined by the claims of the present application.
Claims
1. An audio data processing method, characterized in that: include: Obtaining original audio data corresponding to the original video data; Obtaining audio-related motion feature data in the original video data, including: obtaining a plurality of audio-related motion feature data corresponding to a plurality of sound-making subjects in a same period in the original video data, wherein the audio-related motion feature data refers to motion state data associated with a sound-making event corresponding to the original video data; Analyzing and obtaining target audio data from the original audio data according to the audio-related motion feature data includes: determining a target sounding subject from a plurality of sounding subjects in the same period; obtaining target audio-related motion feature data corresponding to the target sounding subject; analyzing and obtaining target audio data from the original audio data according to the target audio-related motion feature data; the process of analyzing and obtaining target audio data from the original audio data is implemented by a pre-trained deep neural network model; The target audio data is processed according to a predetermined audio processing method.
2. The method according to claim 1, characterized in that The step of analyzing the original audio data to obtain target audio data according to the audio-related motion feature data includes: Based on the original audio data, obtaining target audio feature data that matches the audio-related motion feature data; The audio data corresponding to the target audio feature data in the original audio data is determined as the target audio data.
3. The method according to claim 2, characterized in that The step of obtaining target audio feature data matching the audio-related motion feature data based on the original audio data includes: Target audio feature data matching the audio-related motion feature data is obtained from a plurality of audio feature data corresponding to the original audio data.
4. The method according to claim 3, characterized in that The obtaining of audio-related motion feature data in the original video data comprises: obtaining lip motion feature data in the original video data; The obtaining of target audio feature data matching the audio-related motion feature data from a plurality of audio feature data corresponding to the original audio data comprises: obtaining target audio feature data matching the lip motion feature data from a plurality of audio feature data corresponding to the original audio data.
5. The method according to claim 4, characterized in that The lip movement feature data includes: Lip vibration frequency data; The step of obtaining target audio feature data matching the lip movement feature data from the plurality of audio feature data corresponding to the original audio data comprises: The lip vibration frequency data is matched with the speech rate feature data in the plurality of audio feature data to obtain target speech rate feature data matching the lip vibration frequency data.
6. The method according to claim 4, characterized in that The lip movement feature data includes: Lip vibration phase data; The step of obtaining target audio feature data matching the lip movement feature data from the plurality of audio feature data corresponding to the original audio data comprises: The lip vibration phase data is matched with the speech phase feature data in the multiple audio feature data to obtain target speech phase feature data that matches the lip vibration phase data.
7. The method according to claim 4, characterized in that The lip movement feature data includes: Lip vibration amplitude data; The step of obtaining target audio feature data matching the lip movement feature data from the plurality of audio feature data corresponding to the original audio data comprises: The lip vibration amplitude data is matched with the speech amplitude feature data in the multiple audio feature data to obtain target speech amplitude feature data that matches the lip vibration amplitude data.
8. The method according to claim 1, characterized in that The obtaining of the audio-related motion feature data in the original video data includes: obtaining the audio-related motion feature data corresponding to a unique sound-making subject in the original video data.
9. The method according to claim 1, characterized in that: The obtaining of original audio data corresponding to the original video data includes: obtaining original audio data corresponding to the original video data in input time.
10. The method according to claim 9, characterized in that The obtaining of original audio data corresponding to the original video data in input time includes: obtaining original audio data corresponding to the original video data in input time and coming from a plurality of sound-generating subjects.
11. The method according to claim 10, characterized in that The original video data includes some or all of the multiple sound-making subjects.
12. The method according to claim 1, characterized in that The processing of the target audio data according to a predetermined audio processing method includes: Obtaining voice usage level information corresponding to the target audio data; According to the voice usage level information, the sound signal of the target audio data is enhanced or suppressed.
13. The method according to claim 12, characterized in that The obtaining of the voice usage level information corresponding to the target audio data includes: Obtaining attribute information of a sound-producing subject corresponding to the target audio data; According to the attribute information of the sound-making subject corresponding to the target audio data, the voice usage level information corresponding to the target audio data is obtained.
14. The method according to claim 13, characterized in that The obtaining of attribute information of the sound-making subject corresponding to the target audio data includes: Performing frame processing on the original video data to obtain a target image; Detecting the target image to obtain a facial image corresponding to the audio-related motion feature data in the target image; Extracting features from the facial image to obtain facial feature data; The facial feature data is matched with a predetermined facial feature database to obtain information of a subject corresponding to the facial feature data, and the information of the subject corresponding to the facial feature data is determined as attribute information of a sound-making subject corresponding to the target audio data.
15. The method according to claim 1, characterized in that Also includes: The video data corresponding to the audio-related motion feature data in the original video data is intercepted to obtain the target video data corresponding to the target audio data.
16. The method according to claim 15, characterized in that Also includes: The target audio data and the target video data are stored in a mutually associated manner.
17. The method according to claim 15, characterized in that Also includes: Combine multiple target video data corresponding to the same sound-making subject in the original video data to obtain a video animation corresponding to the same sound-making subject.
18. The method according to claim 1, characterized in that Also includes: Perform camera tracking on the sound-making subject corresponding to the target audio data.
19. An audio data processing device, characterized in that: include: An original audio data obtaining unit, used to obtain original audio data corresponding to the original video data; The audio-related motion feature data obtaining unit is used to obtain the audio-related motion feature data in the original video data, including: obtaining a plurality of audio-related motion feature data corresponding to a plurality of sound-making subjects in the same period in the original video data, wherein the audio-related motion feature data refers to motion state data associated with the sound-making event corresponding to the original video data; A target audio data acquisition unit is used to analyze and acquire target audio data from the original audio data according to the audio-related motion feature data, including: determining a target sound-making subject from a plurality of sound-making subjects in the same period; acquiring target audio-related motion feature data corresponding to the target sound-making subject; and acquiring target audio data from the original audio data according to the target audio-related motion feature data, wherein the process of acquiring target audio data from the original audio data by analyzing is implemented by a pre-trained deep neural network model. The target audio data processing unit is used to process the target audio data according to a predetermined audio processing method.
20. An electronic device, characterized in that: comprising a processor and a memory; wherein, The memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the method according to any one of claims 1-18.
Citation Information
Patent Citations
Method and device for processing videos and related audios and retrieving method and device
CN105512348A
Speech processing method and device
CN107221324A
Voice control method, voice control device, computer equipment and storage medium
CN110570850A
