Voice information processing method, device, storage medium and electronic device
The speaker's identity is identified in the video through voiceprint recognition technology, which solves the problem that existing subtitles cannot determine the speaker's identity, and improves the user experience and video understanding effect.
Patent Information
- Application Number
- CN201980076330.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-01-29
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2039-01-29
AI Technical Summary
The subtitles added to existing videos only contain voice text, making it difficult to determine the identity of the speaker and affecting users' understanding of the video content.
By collecting the voice information of the target user, extracting the voice feature information, inputting the preset model to obtain the voiceprint parameters, matching the voiceprint parameters of the voice information to be recognized, and marking the matching information into the video, voiceprint recognition is implemented to determine the speaker. identity.
It improves the accuracy of voice information processing, helps users better understand video content, reduces manual operations, and saves labor costs.
Smart Images

Figure CN113056784B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of speech processing, and in particular to a speech information processing method, device, storage medium and electronic equipment. Background Art
[0002] With the development of information technology, the data used by users is no longer limited to text and pictures. Video has become the main medium for information transmission.
[0003] At present, in order to help users better understand the content of the video, adding subtitles to the video using speech synthesis technology has become a common choice. At the same time, adding subtitles to the video can also speed up the sharing of videos in different languages. However, the existing subtitles only contain the text content in the speech, which makes it difficult to determine the identity of the speaker in some videos based on the text content alone, thus affecting the user's understanding of the video content. Summary of the invention
[0004] The embodiments of the present application provide a method, device, storage medium and electronic device for processing voice information, which can improve the accuracy of voice information processing.
[0005] In a first aspect, an embodiment of the present application provides a method for processing voice information, including:
[0006] Collecting voice information of a target user and extracting target voice feature information of the voice information;
[0007] Input the target speech feature information into the preset model to obtain the target voiceprint parameters;
[0008] Acquire the voice information to be recognized in the played video, and extract the first voiceprint parameter of the voice information to be recognized;
[0009] The first voiceprint parameter is matched with the target voiceprint parameter, identification information of the matched target voiceprint parameter is obtained according to the matching result, and the identification information is marked in the played video.
[0010] In a second aspect, an embodiment of the present application provides a voice information processing device, comprising:
[0011] A collection unit, used to collect voice information of a target user and extract target voice feature information of the voice information;
[0012] An input unit, used to input target speech feature information into a preset model to obtain target voiceprint parameters;
[0013] An acquisition unit, used for acquiring voice information to be recognized in the played video, and extracting a first voiceprint parameter of the voice information to be recognized;
[0014] A matching unit is used to match the first voiceprint parameter with a target voiceprint parameter, obtain identification information of the matched target voiceprint parameter according to the matching result, and mark the identification information into the played video.
[0015] In a third aspect, the storage medium provided in the embodiments of the present application stores a computer program thereon, and when the computer program runs on a computer, the computer executes a method for processing voice information as provided in any embodiment of the present application.
[0016] In a fourth aspect, an electronic device provided by an embodiment of the present application includes a processor and a memory, wherein the memory has a computer program, and the processor executes the steps by calling the computer program:
[0017] Collecting voice information of a target user and extracting target voice feature information of the voice information;
[0018] Input the target speech feature information into the preset model to obtain the target voiceprint parameters;
[0019] Acquire the voice information to be recognized in the played video, and extract the first voiceprint parameter of the voice information to be recognized;
[0020] The first voiceprint parameter is matched with the target voiceprint parameter, identification information of the matched target voiceprint parameter is obtained according to the matching result, and the identification information is marked in the played video. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The technical solution and other beneficial effects of the present application will be made apparent by describing in detail the specific implementation methods of the present application in conjunction with the accompanying drawings.
[0022] Figure 1 It is a flowchart of the voice information processing method provided in an embodiment of the present application.
[0023] Figure 2 Another flowchart of the method for processing voice information provided in an embodiment of the present application.
[0024] Figure 3 A module diagram of a voice information processing device provided in an embodiment of the present application.
[0025] Figure 4 A schematic diagram of another module of the voice information processing device provided in an embodiment of the present application.
[0026] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0027] Figure 6Another schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0028] Please refer to the drawings, where the same component symbols represent the same components, and the principles of the present application are illustrated by implementing them in an appropriate computing environment. The following description is based on the illustrated specific embodiments of the present application, which should not be considered as limiting other specific embodiments of the present application that are not described in detail herein.
[0029] The term "module" used herein can be regarded as a software object executed on the computing system. The different components, modules, engines and services described herein can be regarded as implementation objects on the computing system. The devices and methods described herein are preferably implemented in software, but can also be implemented in hardware, all within the scope of protection of this application.
[0030] The embodiment of the present application provides a method for processing voice information, and the execution subject of the method for processing voice information can be a voice information processing device provided in the embodiment of the present application, or an electronic device integrating the voice information processing device, wherein the voice information processing device can be implemented in hardware or software. Among them, the electronic device can be a smart phone, a tablet computer, a PDA (Personal Digital Assistant), etc.
[0031] The following is a detailed analysis and explanation.
[0032] The embodiment of the present invention provides a method for processing video and voice, comprising:
[0033] Collecting the target user's voice information and extracting the target voice feature information of the voice information;
[0034] Input the target speech feature information into the preset model to obtain the target voiceprint parameters;
[0035] Acquire the voice information to be recognized in the played video, and extract the first voiceprint parameter of the voice information to be recognized;
[0036] The first voiceprint parameter is matched with the target voiceprint parameter, identification information of the matched target voiceprint parameter is obtained according to the matching result, and the identification information is marked in the played video.
[0037] In one embodiment, before the step of inputting the target voice feature information into the preset model, it can also include: training the background data through a preset algorithm to generate a preset model containing the common voice feature information corresponding to each target user, and the background data includes the voice information of each target user.
[0038] In one embodiment, the step of inputting the target voice feature information into a preset model to obtain target voiceprint parameters may include: inputting the target voice feature information into a preset model to obtain target difference feature information corresponding to the common voice feature information; determining a second voiceprint parameter based on the target difference feature information; and performing channel compensation on the second voiceprint parameter to obtain a corresponding target voiceprint parameter.
[0039] In one implementation, the step of performing channel compensation on the second voiceprint parameter may include: performing channel compensation on the second voiceprint parameter using a linear discriminant analysis method.
[0040] In one embodiment, the step of matching the first voiceprint parameter with the target voiceprint parameter and obtaining identification information of the matching target voiceprint parameter based on the matching result may include: matching the first voiceprint parameter with the target voiceprint parameter to generate a corresponding matching value; when the matching value is greater than a preset threshold, obtaining identification information of the matching target voiceprint parameter.
[0041] In one embodiment, the step of obtaining identification information of the matching target voiceprint parameters may include: sorting the matching values, obtaining the maximum matching value among the matching values greater than a preset threshold, and obtaining the matching target voiceprint parameters based on the maximum matching value; and obtaining the corresponding identification information based on the target voiceprint parameters.
[0042] In one embodiment, the step of marking the identification information in the playing video includes: inputting the voice information to be recognized into a voice recognition model to generate corresponding text information; combining the identification information with the text information to generate subtitle information corresponding to the voice information to be recognized; and marking the subtitle information in the playing video.
[0043] The present application embodiment provides a method for processing voice information, such as Figure 1 As shown, Figure 1 The following is a flow chart of a method for processing voice information provided in an embodiment of the present application. The method for processing voice information may include the following steps:
[0044] In step S101, voice information of a target user is collected, and target voice feature information of the voice information is extracted.
[0045] The target user may refer to the main speaker in the video. It is understandable that in interviews, movies, variety shows and other types of videos, the speakers are mostly concentrated in a limited number of roles. For example, in interview videos, the target users are the host and the interview guests, in movie or TV series videos, the target users are the actors with more important roles, or in the music video (MV) of an idol group, the target users are all the members of the idol group.
[0046] Among them, the voice information of the target user refers to the voice information after annotation, and the voice information of the target user contains the identification information of the target user. Further, the identification information may refer to the identity information of the target user, such as name, gender, age, title and other personal information. At the same time, the target voice feature information refers to the target voice voiceprint feature information. It can be understood that because the vocal organs used by people when speaking, such as tongue, teeth, larynx, lungs, and nasal cavity, vary greatly in size and shape, each person's voiceprint is different. Therefore, the voiceprint feature information is a unique feature of each person, just like everyone has his or her own unique fingerprint. Further, the target voice feature information includes the Mel-Frequency Cepstral Coefficient (MFCC) of the target voice information.
[0047] In some embodiments, in order to ensure the stability of the target speech feature information of the speech information, the speech information can be de-silenced and de-noised to generate processed speech information; the target speech feature information of the processed speech information is extracted and the target speech feature information is processed using feature mean variance normalization and feature bending.
[0048] In step S102, the target speech feature information is input into a preset model to obtain target voiceprint parameters.
[0049] Among them, the preset model can refer to the Universal Background Model (UBM model for short), and the target voiceprint parameters containing the identification information of the target user are obtained by inputting the target speech feature information, i.e., the target voiceprint features, into the UBM model, wherein different target voiceprint parameters correspond to the identification information of different target users, i.e., the target user of each voice message can be determined by the target voiceprint parameters of each voice message. At the same time, if the target voiceprint parameters output by different voice segments are the same, it can be determined that the speakers of different voice segments are the same user. In addition, the process of inputting the target speech feature information into the preset model to obtain the target voiceprint parameters is the process of establishing a voiceprint model according to the target voiceprint parameters. It can be understood that different target voiceprint parameters correspond to the voiceprint models of different target users.
[0050] In some embodiments, before the step of inputting the target voice feature information into the preset model, it can also include: training the background data through a preset algorithm to generate a preset model containing the common voice feature information corresponding to each target user, and the background data includes the voice information of each target user.
[0051] At this time, the step of inputting the target speech feature information into the preset model to obtain the target voiceprint parameters may include:
[0052] (1) inputting the target speech feature information into a preset model to obtain target difference feature information corresponding to the common speech feature information;
[0053] (2) determining a second voiceprint parameter based on the target difference feature information;
[0054] (3) Channel compensation is performed on the second voiceprint parameter to obtain a corresponding target voiceprint parameter.
[0055] Among them, the preset algorithm can be an EM algorithm, and the background data is trained by the EM algorithm, that is, the target voice feature information in the background data is trained to generate a universal background model, and the corresponding common voice feature information of each target user is obtained through the UBM model. At this time, the common voice feature information is the corresponding common voiceprint features obtained from all target users.
[0056] Furthermore, the target voice feature information is input into the UBM model, and the target difference feature information corresponding to the common voice feature information can be calculated based on the target voice feature information and the common voice feature information, and the second voiceprint parameter corresponding to each voice information is determined based on the target difference feature information, wherein the second voiceprint parameter includes the identification information of the target user. It is understandable that due to the uniqueness of the voiceprint, the target voice feature information of different target users is different, so the difference of each target voice feature information is amplified by obtaining the target difference feature information corresponding to the common voice feature information, so that compared with the target voice feature information, the target user information corresponding to each voice information can be more accurately determined based on the target difference feature information.
[0057] In addition, since the voice information in the background data and the voice information to be recognized are collected in different transmission channels, there are large channel differences, which leads to a decrease in recognition performance and affects the recognition rate. Therefore, channel compensation is performed on the second voiceprint parameters so that the second voiceprint parameters can minimize the intra-class differences and maximize the inter-class differences, so as to obtain low-dimensional target voiceprint parameters that are easy to distinguish.
[0058] In step S103, the voice information to be recognized in the played video is obtained, and the first voiceprint parameter of the voice information to be recognized is extracted.
[0059] Among them, the method of obtaining the voice information to be recognized in the playing video may include obtaining the voice information to be recognized of the video being played or the live video in real time, or obtaining the voice information to be recognized of the locally stored video. In addition, the method of extracting the first voiceprint parameter of the voice information to be recognized is the same as the process of extracting the target voiceprint parameter, that is, extracting the first voice feature information in the voice information to be recognized, and inputting the first voice feature information into the preset model, and calculating the first difference feature information corresponding to the common voice feature information and the first voice feature information corresponding to each target user in the preset model, and determining the first voiceprint parameter corresponding to the voice information to be recognized based on the first difference feature information.
[0060] In step S104, the first voiceprint parameter is matched with the target voiceprint parameter, identification information of the matched target voiceprint parameter is obtained according to the matching result, and the identification information is marked in the played video.
[0061] Among them, the first voiceprint parameter is matched with the target voiceprint parameter, and a corresponding matching result is obtained. According to the matching result, the target voiceprint parameter that matches the first voiceprint parameter can be determined. Since each target voiceprint parameter corresponds to the information of each target user, that is, the target voiceprint parameter contains the identification information of the corresponding target user, the information of the target user corresponding to the first voiceprint parameter can be confirmed according to the target voiceprint parameter.
[0062] In some implementations, the step of matching the first voiceprint parameter with the target voiceprint parameter and obtaining identification information of the matched target voiceprint parameter according to the matching result may include:
[0063] (1) matching the first voiceprint parameter with the target voiceprint parameter to generate a corresponding matching value;
[0064] (2) When the matching value is greater than a preset threshold, identification information of the matched target voiceprint parameters is obtained.
[0065] Among them, when the matching value is greater than the preset threshold, that is, the first voiceprint parameter and the matching target voiceprint parameter are extremely similar, it can be determined that the speaker of the first voiceprint parameter and the target user corresponding to the matching target voiceprint parameter are the same user, so the identification information of the matching target voiceprint parameter can be obtained as the identification information of the speech to be recognized corresponding to the first voiceprint parameter.
[0066] In addition, in some implementations, the step of marking the identification information into the played video may include:
[0067] (1.1) Inputting the speech information to be recognized into a speech recognition model to generate corresponding text information;
[0068] (2.1) combining the identification information with the text information to generate subtitle information corresponding to the voice information to be recognized;
[0069] (3.1) The subtitle information is marked in the playing video.
[0070] Among them, when the voice information to be recognized is input into the preset model to obtain identification information, the voice to be recognized is simultaneously input into the voice recognition model to obtain text information, and the time information corresponding to the text information and the identification information are recorded respectively, and the identification information and the text information are combined according to the time information to generate subtitle information of the voice information to be recognized, and the subtitle information is marked into the playback video according to the time information.
[0071] In some embodiments, the subtitle information can be marked in a preset position of the playing video in a preset combination, for example, the identification information and the subtitle information are combined and marked side by side at the bottom of the playing video screen. Alternatively, the identification information in the subtitle information marks the first area of the playing video in a special form, and the identification information marks the text information in a second area of the playing video in a different form. For example, the identification information is added to the upper end of the playing video screen with a font size smaller than the text information, and the text information is added to the lower end of the playing video screen.
[0072] As can be seen from the above, the present embodiment provides a method for processing voice information, which collects the voice information of the target user, extracts the target voice feature information of the voice information; inputs the target voice feature information into a preset model to obtain the target voiceprint parameter; obtains the voice information to be identified in the playback video, and extracts the first voiceprint parameter of the voice information to be identified; and matches the first voiceprint parameter with the target voiceprint parameter, obtains the identification information of the matching target voiceprint parameter according to the matching result, and identifies the identification information to the playback video. In this way, the identification information of the target user, such as identity information, can be identified to the playback video, which helps the user to better understand the content of the video when watching the video to ensure the user experience. At the same time, the identification information is automatically added to the playback video through voiceprint recognition technology, which greatly reduces manual operations and saves labor costs.
[0073] The method described in the above embodiment is further described in detail below with examples.
[0074] See also Figure 2 , Figure 2 Another flowchart of the method for processing voice information provided in an embodiment of the present application.
[0075] Specifically, the method comprises the following steps:
[0076] In step S201, voice information of a target user is collected, and target voice feature information of the voice information is extracted.
[0077] The target user's voice information refers to the annotated voice information, so the target user's voice information contains the target user's identification information. Furthermore, the identification information may refer to the target user's identity information, such as name, gender, age, title, and other personal information. In addition, the target voice feature information refers to the voiceprint feature information of the target voice. Since the voiceprint feature information is a unique feature of each person, the user information corresponding to the voice information can be distinguished according to the voiceprint feature.
[0078] In some embodiments, in order to ensure the stability of the target speech feature information of the speech information, the speech information can be de-silenced and de-noised to generate processed speech information; the target speech feature information of the processed speech information is extracted and the target speech feature information is processed using feature mean variance normalization and feature bending.
[0079] In step S202, the background data is trained by a preset algorithm to generate a preset model containing common voice feature information corresponding to each target user, and the background data includes voice information of each target user.
[0080] Among them, the preset algorithm can be an EM algorithm, and the background data is trained by the EM algorithm, that is, the target voice feature information in the background data is trained to generate a universal background model, and the corresponding common voice feature information of each target user is obtained through the UBM model. At this time, the common voice feature information is the corresponding common voiceprint features obtained from all target users.
[0081] In step S203, the target speech feature information is input into a preset model to obtain target difference feature information corresponding to the common speech feature information.
[0082] The target feature information of each speech segment is input into a preset model. At this time, the target difference feature information can be obtained according to the target speech feature information corresponding to each speech segment and the common speech feature information of all target users obtained in step S202.
[0083] In step S204, a second voiceprint parameter is determined according to the target difference feature information;
[0084] The target difference feature information is transformed through the total factor space (Total Variability Space (TVS)-based model) to obtain the second voiceprint parameter. The total factor matrix of the total factor space can be estimated by the EM algorithm.
[0085] In step S205, channel compensation is performed on the second voiceprint parameters using a linear discriminant analysis method to obtain corresponding target voiceprint parameters.
[0086] Among them, in order to reduce the problem of reduced recognition accuracy caused by channel differences, the linear discriminant analysis (LDA) method can be used for channel compensation. It should be noted that LDA uses label information to find the optimal projection direction so that the projected sample set has the smallest intra-class difference and the largest inter-class difference. When applied to voiceprint recognition, the vector of the voiceprint parameters of the same speaker represents a class. Minimizing the intra-class difference is to reduce the changes caused by the channel, and maximizing the inter-class difference is to increase the difference information between speakers. Therefore, the linear discriminant analysis method can be used to obtain low-dimensional target voiceprint parameters that are easy to distinguish.
[0087] In addition, at this time, the process of obtaining the target voiceprint parameters according to the target speech feature information is the process of establishing the corresponding voiceprint model. At this time, the voiceprint model is the i-vector voiceprint model corresponding to each target user.
[0088] In step S206, the voice information to be recognized in the played video is obtained, and the first voiceprint parameter of the voice information to be recognized is extracted.
[0089] Among them, the voice feature information of the voice information to be recognized is extracted, and the voice feature information is input into the voiceprint model in step S205, and the corresponding target difference feature information is obtained according to the common voice feature information in the UBM model; the first voice feature information is input into the preset model, and the first difference feature information corresponding to the common voice feature information is calculated according to the common voice feature information corresponding to each target user in the preset model and the first voice feature information, and the first voiceprint parameter corresponding to the voice information to be recognized is determined according to the first difference feature information; and the first voiceprint parameter is channel compensated to obtain the processed first voiceprint parameter. The step of extracting the first voiceprint parameter of the voice information to be recognized is the same as the step of extracting the target voiceprint parameter, which will not be repeated here.
[0090] In step S207, the first voiceprint parameter is matched with the target voiceprint parameter to generate a corresponding matching value.
[0091] The first voiceprint parameters are respectively matched with the target voiceprint parameters of the target user for similarity, and corresponding matching values are generated.
[0092] In step S208, when the matching value is greater than the preset threshold, the matching values are sorted to obtain the maximum matching value among the matching values greater than the preset threshold, and the matching target voiceprint parameters are obtained according to the maximum matching value.
[0093] Among them, when the matching value is greater than a preset threshold value such as 0.8, that is, at this time, the first voiceprint parameter successfully matches the corresponding target voiceprint parameter, and it can be determined that the target user corresponding to the first voiceprint parameter corresponding to the matching value and the target user corresponding to the target voiceprint parameter are the same user with a high probability. If there are multiple matching values greater than the preset threshold, the matching values greater than the preset threshold are sorted and the maximum matching value is obtained. At this time, it is determined that the target user corresponding to the first voiceprint parameter corresponding to the maximum matching value and the target user corresponding to the target voiceprint parameter are the same person with a high probability, and the target voiceprint parameter corresponding to the maximum matching value is obtained.
[0094] In addition, in some embodiments, when the matching values are all less than the preset threshold, it means that the first voiceprint parameters do not match the target voiceprint parameters, that is, the speaker corresponding to the voice to be recognized does not match the target user in the model, and the voiceprint model inputs an unmatched matching result.
[0095] In step S209, corresponding identification information is obtained according to the target voiceprint parameters.
[0096] Among them, since the target voiceprint parameters contain the identification information of the target user, the corresponding identification information can be obtained according to the successfully matched target voiceprint parameters.
[0097] In step S210, the speech information to be recognized is input into a speech recognition model to generate corresponding text information.
[0098] When the voice information to be recognized is input into the voiceprint model to obtain identification information, the voice information to be recognized is simultaneously input into the voice recognition model to obtain text information.
[0099] In step S211, the identification information is combined with the text information to generate subtitle information corresponding to the speech information to be recognized.
[0100] When the identification information and the text information are obtained, the time information corresponding to the text information and the identification information are recorded respectively, and the identification information and the text information are combined according to the time information to generate the subtitle information of the voice information to be recognized.
[0101] In step S212, the subtitle information is marked in the played video.
[0102] The subtitle information is marked to a preset area in the playing video according to the time information to ensure that the subtitle information is synchronized with the voice information in the playing video.
[0103] As can be seen from the above, the present embodiment provides a method for processing voice information, which collects the voice information of the target user and extracts the target voice feature information of the voice information;
[0104] Input the target voice feature information into the preset model to obtain the target voiceprint parameters; obtain the voice information to be identified in the playback video, and extract the first voiceprint parameters of the voice information to be identified; match the first voiceprint parameters with the target voiceprint parameters, obtain the identification information of the matching target voiceprint parameters according to the matching results, and mark the identification information into the playback video. In this way, the identification information of the target user, such as identity information, can be marked into the playback video, helping users to better understand the content of the video when watching the video to ensure user experience. In addition, using voice recognition and voiceprint recognition technology to automatically add subtitle information to the video can greatly reduce manual annotation operations and save labor costs.
[0105] In order to better implement the voice information processing method provided in the embodiment of the present application, the embodiment of the present application also provides a device based on the voice information processing method. The meaning of the nouns is the same as that in the voice information processing method, and the specific implementation details can refer to the description in the method embodiment.
[0106] The embodiment of the present invention provides a video and voice processing device, including:
[0107] A collection unit, used to collect voice information of a target user and extract target voice feature information of the voice information;
[0108] An input unit, used to input target speech feature information into a preset model to obtain target voiceprint parameters;
[0109] An acquisition unit, used to acquire the voice information to be recognized in the played video, and extract the first voiceprint parameter of the voice information to be recognized;
[0110] The matching unit is used to match the first voiceprint parameter with the target voiceprint parameter, obtain identification information of the matched target voiceprint parameter according to the matching result, and mark the identification information into the played video.
[0111] In one embodiment, the device may further include: a training unit for training background data through a preset algorithm to generate a preset model containing common voice feature information corresponding to each target user, wherein the background data includes voice information of each target user.
[0112] In one embodiment, the input unit may include: an input subunit, used to input the target voice feature information into a preset model to obtain target difference feature information corresponding to the common voice feature information; a determination subunit, used to determine a second voiceprint parameter based on the target difference feature information; and a processing subunit, used to perform channel compensation on the second voiceprint parameter to obtain a corresponding target voiceprint parameter.
[0113] In one embodiment, the matching unit may include: a matching subunit, used to match the first voiceprint parameter with the target voiceprint parameter to generate a corresponding matching value; and an acquisition subunit, used to acquire identification information of the matched target voiceprint parameter when the matching value is greater than a preset threshold.
[0114] In one embodiment, the matching unit may also include: a generating subunit, used to input the voice information to be recognized into a voice recognition model to generate corresponding text information; a combining subunit, used to combine the identification information with the text information to generate subtitle information corresponding to the voice information to be recognized; and an identifying subunit, used to identify the subtitle information in the played video.
[0115] See also Figure 3 , Figure 3 The module diagram of the voice information processing device provided in the embodiment of the present application is as follows. Specifically, the voice information processing device 300 includes: a collection unit 31, an input unit 32, an acquisition unit 33 and a matching unit 34.
[0116] The collecting unit 31 is used to collect the voice information of the target user and extract the target voice feature information of the voice information.
[0117] Among them, the voice information of the target user collected by the collection unit 31 refers to the labeled voice information, so the voice information of the target user contains the identification information of the target user. Furthermore, the identification information can refer to the identity information of the target user, such as name, gender, age, title and other personal information.
[0118] In addition, the target speech feature information extracted by the acquisition unit 31 refers to the target speech voiceprint feature information. It is understandable that because the vocal organs used by people when speaking, such as tongue, teeth, larynx, lungs, and nasal cavity, vary greatly in size and shape, each person's voiceprint is different. Therefore, the voiceprint feature information is a unique feature of each person, just like everyone has their own unique fingerprint. Further, the voiceprint feature information can be represented by Mel-Frequency Cepstral Coefficient (MFCC).
[0119] The input unit 32 is used to input the target speech feature information into a preset model to obtain target voiceprint parameters.
[0120] Among them, the input unit 32 inputs the target voice feature information of the target user's voice information into the preset model to obtain the adjusted voice feature information corresponding to the voice information. In addition, since the preset model contains the common voice feature information corresponding to each target user, the input unit 32 can determine the corresponding target voiceprint parameters based on the adjusted voice feature information and the common voice feature information.
[0121] The acquisition unit 33 is used to acquire the voice information to be recognized in the played video and extract the first voiceprint parameter of the voice information to be recognized.
[0122] The method of acquiring the voice information to be recognized in the playing video in the acquisition unit 33 may include acquiring the voice information to be recognized of the playing video or live video in real time, or acquiring the voice information to be recognized of the locally stored video. In addition, the step of extracting the first voiceprint parameter of the voice information to be recognized by the acquisition unit 33 is the same as the step of acquiring the target voiceprint parameter through the input unit 32.
[0123] The matching unit 34 is used to match the first voiceprint parameter with the target voiceprint parameter, obtain identification information of the matched target voiceprint parameter according to the matching result, and mark the identification information into the played video.
[0124] Among them, the matching unit 34 matches the first voiceprint parameter with the target voiceprint parameter and obtains a corresponding matching result. According to the matching result, the target voiceprint parameter that matches the first voiceprint parameter can be determined. Among them, since each target voiceprint parameter corresponds to the information of each target user, that is, the target voiceprint parameter contains the identification information of the corresponding target user, the information of the target user corresponding to the first voiceprint parameter can be confirmed according to the target voiceprint parameter.
[0125] Can be referenced together Figure 4 , Figure 4 Another module diagram of the voice information processing device provided in the embodiment of the present application. The voice information processing device 300 may also include: a training unit 35, which is used to train the background data through a preset algorithm to generate a preset model containing common voice feature information corresponding to each target user, and the background data includes the voice information of each target user.
[0126] Among them, the input unit 32 may include: an input subunit 321, used to input the target voice feature information into a preset model to obtain target difference feature information corresponding to the common voice feature information; a determination subunit 322, used to determine a second voiceprint parameter based on the target difference feature information; a processing subunit 323, used to perform channel compensation on the second voiceprint parameter to obtain a corresponding target voiceprint parameter.
[0127] The matching unit 34 may include: a matching subunit 341, used to match the first voiceprint parameter with the target voiceprint parameter to generate a corresponding matching value; an acquisition subunit 342, used to acquire identification information of the matched target voiceprint parameter when the matching value is greater than a preset threshold. A generation subunit 343, used to input the voice information to be recognized into a voice recognition model to generate corresponding text information; a combination subunit 344, used to combine the identification information with the text information to generate subtitle information corresponding to the voice information to be recognized; and an identification subunit 345, used to identify the subtitle information to the played video.
[0128] The present application also provides an electronic device. Figure 5 , the electronic device 500 includes a processor 501 and a memory 502. The processor 501 is electrically connected to the memory 502.
[0129] The processor 500 is the control center of the electronic device 500. It uses various interfaces and lines to connect various parts of the entire electronic device. It executes various functions of the electronic device 500 and processes data by running or loading computer programs stored in the memory 502 and calling data stored in the memory 502, thereby monitoring the electronic device 500 as a whole.
[0130] The memory 502 can be used to store software programs and modules. The processor 501 executes various functional applications and data processing by running the computer programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a computer program required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 502 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.
[0131] In the embodiment of the present application, the processor 501 in the electronic device 500 will load instructions corresponding to the processes of one or more computer programs into the memory 502 according to the following steps, and the processor 501 will run the computer program stored in the memory 502, thereby realizing various functions, as follows:
[0132] Collecting the target user's voice information and extracting the target voice feature information of the voice information;
[0133] Input the target speech feature information into the preset model to obtain the target voiceprint parameters;
[0134] Acquire the voice information to be recognized in the played video, and extract the first voiceprint parameter of the voice information to be recognized;
[0135] The first voiceprint parameter is matched with the target voiceprint parameter, identification information of the matched target voiceprint parameter is obtained according to the matching result, and the identification information is marked in the playback video.
[0136] In some implementations, before inputting the target speech feature information into the preset model, the processor 501 may further specifically perform the following steps:
[0137] The background data is trained by a preset algorithm to generate a preset model containing common voice feature information corresponding to each target user, and the background data includes voice information of each target user.
[0138] In some implementations, when inputting the target speech feature information into a preset model to obtain the target voiceprint parameters, the processor 501 may specifically perform the following steps:
[0139] Inputting the target speech feature information into a preset model to obtain target difference feature information corresponding to the common speech feature information;
[0140] Determining a second voiceprint parameter according to the target difference characteristic information;
[0141] The second voiceprint parameters are channel compensated using a linear discriminant analysis method to obtain corresponding target voiceprint parameters.
[0142] In some implementations, when matching the first voiceprint parameter with the target voiceprint parameter and acquiring identification information of the matched target voiceprint parameter according to the matching result, the processor 501 may specifically perform the following steps:
[0143] Matching the first voiceprint parameter with the target voiceprint parameter to generate a corresponding matching value;
[0144] When the matching value is greater than a preset threshold, identification information of the matching target voiceprint parameters is obtained.
[0145] In some implementations, when obtaining identification information of the matching target voiceprint parameters, the processor 501 may specifically perform the following steps:
[0146] The matching values are sorted to obtain a maximum matching value among the matching values that are greater than a preset threshold, and a matching target voiceprint parameter is obtained according to the maximum matching value;
[0147] The corresponding identification information is obtained according to the target voiceprint parameter.
[0148] In some implementations, when the identification information is added to the played video, the processor 501 may specifically perform the following steps:
[0149] Inputting the speech information to be recognized into the speech recognition model to generate corresponding text information;
[0150] Combining the identification information with the text information to generate subtitle information corresponding to the voice information to be recognized;
[0151] Add subtitle information to the playing video.
[0152] Please also read Figure 6 In some embodiments, the electronic device 500 may further include: a display 503, a radio frequency circuit 504, an audio circuit 505, and a power supply 506. The display 503, the radio frequency circuit 504, the audio circuit 505, and the power supply 506 are electrically connected to the processor 501, respectively.
[0153] The display 503 may be used to display information input by a user or information provided to a user and various graphical user interfaces, which may be composed of graphics, text, icons, videos, and any combination thereof. The display 503 may include a display panel, and in some embodiments, the display panel may be configured in the form of a liquid crystal display (LCD) or an organic light-emitting diode (OLED).
[0154] The radio frequency circuit 504 can be used to send and receive radio frequency signals, so as to establish wireless communication with a network device or other electronic devices through wireless communication, and to send and receive signals between the network device or other electronic devices.
[0155] The audio circuit 505 can be used to provide an audio interface between a user and an electronic device through a speaker and a microphone.
[0156] The power supply 506 can be used to supply power to various components of the electronic device 500. In some embodiments, the power supply 506 can be logically connected to the processor 501 through a power management system, so that the power management system can manage charging, discharging, power consumption and other functions.
[0157] although Figure 6 Not shown, the electronic device 500 may also include a camera, a Bluetooth module, etc., which will not be described in detail here.
[0158] An embodiment of the present application also provides a storage medium, which stores a computer program. When the computer program runs on a computer, the computer executes the voice information processing method in any of the above embodiments, such as: collecting voice information of a target user and extracting target voice feature information of the voice information; inputting the target voice feature information into a preset model to obtain a target voiceprint parameter; obtaining voice information to be recognized in a played video, and extracting a first voiceprint parameter of the voice information to be recognized; matching the first voiceprint parameter with the target voiceprint parameter, obtaining identification information of the matched target voiceprint parameter according to the matching result, and marking the identification information in the played video.
[0159] In the embodiment of the present application, the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0160] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0161] It should be noted that, for the voice information processing method of the embodiment of the present application, ordinary testers in the field can understand that all or part of the process of implementing the voice information processing method of the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, such as stored in the memory of an electronic device, and executed by at least one processor in the electronic device, and the execution process may include the process of the embodiment of the voice information processing method. Among them, the storage medium can be a disk, an optical disk, a read-only memory, a random access memory, etc.
[0162] For the voice information processing device of the embodiment of the present application, each functional module can be integrated into a processing chip, or each module can exist physically separately, or two or more modules can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium, such as a read-only memory, a disk or an optical disk.
[0163] The above is a detailed introduction to a voice information processing method, device, storage medium and electronic device provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for processing voice information, wherein: include: Collecting voice information of a target user and extracting target voice feature information of the voice information, wherein the target user is the main speaker in the played video; Training the background data by a preset algorithm to generate a preset model containing common voice feature information corresponding to each target user, wherein the background data includes voice information of each target user, and the common voice feature information is corresponding common voiceprint features obtained from all target users; Inputting the target voice feature information into a preset model to obtain a target voiceprint parameter, wherein the target voice feature information is input into the preset model to obtain target difference feature information corresponding to the common voice feature information, and determining a second voiceprint parameter according to the target difference feature information; performing channel compensation on the second voiceprint parameter to obtain a corresponding target voiceprint parameter; Acquire voice information to be recognized in the played video, and extract a first voiceprint parameter of the voice information to be recognized, wherein first voice feature information of the voice information to be recognized is extracted, the first voice feature information is input into the preset model, and first difference feature information is calculated according to the common voice feature information of all target users and the first voice feature information, the first voiceprint parameter of the voice information to be recognized is determined according to the first difference feature information, and the first voiceprint parameter is channel compensated to obtain the processed first voiceprint parameter; The first voiceprint parameter is matched with the target voiceprint parameter, identification information of the matched target voiceprint parameter is obtained according to the matching result, and the identification information is marked in the played video.
2. The method according to claim 1, wherein: The step of performing channel compensation on the second voiceprint parameter comprises: The second voiceprint parameter is channel compensated using a linear discriminant analysis method.
3. The method according to claim 1, wherein: The step of matching the first voiceprint parameter with the target voiceprint parameter and acquiring identification information of the matched target voiceprint parameter according to the matching result includes: Matching the first voiceprint parameter with the target voiceprint parameter to generate a corresponding matching value; When the matching value is greater than a preset threshold, identification information of the matching target voiceprint parameters is obtained.
4. The method according to claim 3, wherein: The step of obtaining identification information of the matching target voiceprint parameters includes: Sorting the matching values to obtain a maximum matching value among the matching values that are greater than a preset threshold, and obtaining a matching target voiceprint parameter according to the maximum matching value; The corresponding identification information is obtained according to the target voiceprint parameter.
5. The method according to claim 1, wherein: The step of marking the identification information into the played video includes: Inputting the speech information to be recognized into a speech recognition model to generate corresponding text information; Combining the identification information with the text information to generate subtitle information corresponding to the speech information to be recognized; The subtitle information is marked in the playing video.
6. A device for processing voice information, wherein: include: A collection unit, used to collect voice information of a target user and extract target voice feature information of the voice information, wherein the target user is a main speaker in the played video; A training unit, configured to train background data using a preset algorithm to generate a preset model containing common voice feature information corresponding to each target user, wherein the background data includes voice information of each target user, and the common voice feature information is corresponding common voiceprint features obtained from all target users; An input unit, used to input the target voice feature information into a preset model to obtain a target voiceprint parameter, wherein the target voice feature information is input into the preset model to obtain target difference feature information corresponding to the common voice feature information, the input unit includes a determination subunit and a processing subunit, the determination subunit is used to determine a second voiceprint parameter according to the target difference feature information; the processing subunit is used to perform channel compensation on the second voiceprint parameter to obtain a corresponding target voiceprint parameter; an acquisition unit, for acquiring voice information to be recognized in a played video, and extracting a first voiceprint parameter of the voice information to be recognized, wherein first voice feature information of the voice information to be recognized is extracted, the first voice feature information is input into the preset model, and first difference feature information is calculated based on the common voice feature information of all target users and the first voice feature information, the first voiceprint parameter of the voice information to be recognized is determined based on the first difference feature information, and the first voiceprint parameter is subjected to channel compensation to obtain the processed first voiceprint parameter; A matching unit is used to match the first voiceprint parameter with a target voiceprint parameter, obtain identification information of the matched target voiceprint parameter according to the matching result, and mark the identification information into the played video.
7. The device according to claim 6, wherein: The matching unit comprises: A matching subunit, configured to match the first voiceprint parameter with a target voiceprint parameter to generate a corresponding matching value; The acquisition subunit is used to acquire identification information of the matched target voiceprint parameters when the matching value is greater than a preset threshold.
8. The device according to claim 6, wherein: The matching unit further includes: A generating subunit, used for inputting the speech information to be recognized into a speech recognition model to generate corresponding text information; A combining subunit, used for combining the identification information with the text information to generate subtitle information corresponding to the speech information to be recognized; The identification subunit is used to identify the subtitle information into the played video.
9. A storage medium having a computer program stored thereon, wherein: When the computer program is executed on a computer, the computer is enabled to execute the method for processing speech information as claimed in any one of claims 1 to 5.
10. An electronic device comprising a processor and a memory, wherein the memory has a computer program, wherein: The processor is configured to execute the steps of: Collecting voice information of a target user and extracting target voice feature information of the voice information, wherein the target user is the main speaker in the played video; Training the background data by a preset algorithm to generate a preset model containing common voice feature information corresponding to each target user, wherein the background data includes voice information of each target user, and the common voice feature information is corresponding common voiceprint features obtained from all target users; Inputting the target voice feature information into a preset model to obtain a target voiceprint parameter, wherein the target voice feature information is input into the preset model to obtain target difference feature information corresponding to the common voice feature information, and determining a second voiceprint parameter according to the target difference feature information; performing channel compensation on the second voiceprint parameter to obtain a corresponding target voiceprint parameter; Acquire voice information to be recognized in the played video, and extract a first voiceprint parameter of the voice information to be recognized, wherein first voice feature information of the voice information to be recognized is extracted, the first voice feature information is input into the preset model, and first difference feature information is calculated according to the common voice feature information of all target users and the first voice feature information, the first voiceprint parameter of the voice information to be recognized is determined according to the first difference feature information, and the first voiceprint parameter is channel compensated to obtain the processed first voiceprint parameter; The first voiceprint parameter is matched with the target voiceprint parameter, identification information of the matched target voiceprint parameter is obtained according to the matching result, and the identification information is marked in the played video.
11. The electronic device according to claim 10, wherein: The processor is configured to execute the steps of: The second voiceprint parameter is channel compensated using a linear discriminant analysis method.
12. The electronic device according to claim 10, wherein: The processor is configured to execute the steps of: Matching the first voiceprint parameter with the target voiceprint parameter to generate a corresponding matching value; When the matching value is greater than a preset threshold, identification information of the matching target voiceprint parameters is obtained.
13. The electronic device according to claim 12, wherein the processor is configured to execute the steps of: Sorting the matching values to obtain a maximum matching value among the matching values that are greater than a preset threshold, and obtaining a matching target voiceprint parameter according to the maximum matching value; The corresponding identification information is obtained according to the target voiceprint parameter.
14. The electronic device according to claim 10, wherein: The processor is configured to execute the steps of: Inputting the speech information to be recognized into a speech recognition model to generate corresponding text information; Combining the identification information with the text information to generate subtitle information corresponding to the speech information to be recognized; The subtitle information is marked in the playing video.
Citation Information
Patent Citations
Voice search method and device and electronic equipment
CN107357875A
Conference sharing method and device and conference record generating method and device
CN107911646A
Voiceprint recognition method and device, voiceprint verification method and device, computing equipment and medium
CN111199741A
