Sign language translation method and device, equipment, storage medium and program product
By acquiring hand and facial movement data, combined with scene parameters, and using a pre-trained sign language speech translation model to generate voice data, it solves the problem of stiff voice broadcast in sign language translation in the existing technology and improves the expressiveness and interactive experience of sign language translation.
Patent Information
- Application Number
- CN202410856700.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-29
AI Technical Summary
In existing sign language translation technology, the process of converting sign language into text and then into speech results in stiff voice broadcast, which affects the experience of interactive sign language dialogue.
By obtaining the user's hand movement data and facial movement data, the pre-trained sign language speech translation model is used to generate speech data based on scene parameters, and the audio parameters are adjusted to improve the expressiveness of the speech.
It realizes the emotional following of translated speech, improves the expressiveness of sign language translation and the experience of interactive dialogue, and avoids the harshness of synthetic speech.
Smart Images

Figure CN118865489A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a sign language translation method, device, equipment, storage medium and program product. Background Art
[0002] At present, most sign language translation is carried out in a phased translation and conversion method, such as first converting sign language into text, then converting text into speech, and finally voice broadcasting. In this process, since only the most basic semantic information is retained in the stage of converting sign language into text, the final voice broadcast will sound stiff, affecting the experience of the sign language speaker interacting with others. Summary of the invention
[0003] In view of the problems existing in the prior art, the embodiments of the present invention provide a sign language translation method, device, equipment, storage medium and program product, which can improve the expressiveness of synthesized speech after sign language translation.
[0004] In a first aspect, an embodiment of the present invention provides a sign language translation method, comprising:
[0005] Obtaining the user's hand motion data and facial motion data;
[0006] Generate and output voice data according to the hand movement data, the facial movement data and preset scene parameters through a pre-trained sign language voice translation model;
[0007] The scene parameters are used to adjust the audio parameters of the speech data generated by the sign language speech translation model.
[0008] As an improvement of the above solution, the method of generating and outputting speech data according to the hand motion data, the facial motion data and the preset scene parameters through a pre-trained sign language speech translation model includes:
[0009] Preprocessing the hand motion data and the facial motion data respectively to generate a first feature matrix corresponding to the hand motion data and a second feature matrix corresponding to the facial motion data;
[0010] The first feature matrix, the second feature matrix and the scene parameters are input into the sign language speech translation model to generate and output the speech data.
[0011] As an improvement of the above solution, the preprocessing of the hand motion data and the facial motion data respectively to generate a first feature matrix corresponding to the hand motion data and a second feature matrix corresponding to the facial motion data includes:
[0012] Inputting several frames of hand motion images in the hand motion data into a preset fully connected neural network model respectively to obtain a first feature vector of the corresponding hand motion image;
[0013] Connect all the first eigenvectors to obtain a first eigenmatrix;
[0014] Inputting several frames of facial action images in the facial action data into the fully connected neural network model respectively to obtain second feature vectors of corresponding facial action images;
[0015] All the second eigenvectors are connected to obtain a second eigenmatrix.
[0016] As an improvement of the above solution, the step of obtaining the user's hand motion data and facial motion data includes:
[0017] For the currently recorded hand movement video and facial movement video of the user, a preset sliding window is used to perform image sampling and assembly to obtain the hand movement data and the facial movement data;
[0018] Wherein, each frame of hand movement image in the hand movement data is aligned with each frame of hand movement image in the facial movement data.
[0019] As an improvement of the above solution, the audio parameters include pitch, tone, speed and rhythm; the scene parameters include scene categories; wherein different scene parameters correspond to different audio parameters.
[0020] As an improvement of the above solution, the method further includes the following training process of the sign language speech translation model:
[0021] Collect hand voice video data of multiple target objects in different scene categories;
[0022] Acquire frame-aligned hand movement training video, facial movement training video and voice training data from the hand and voice video object to obtain a plurality of training data;
[0023] Preprocessing the hand movement training video and the facial movement training video in the training data to generate a third feature matrix of the hand movement training video and a fourth feature matrix of the facial movement training video;
[0024] Converting speech training data in the training data into a Mel-spectrogram sequence;
[0025] Vectorizing the audio parameters corresponding to the scene category to which the training data belongs to obtain an audio embedding vector;
[0026] The third feature matrix, the fourth feature matrix, and the audio embedding vector are input into the sign language-to-speech translation model, the mel-spectrogram sequence is used as output supervision of the sign language-to-speech translation model, and the sign language-to-speech translation model is trained until preset training conditions are met, so as to obtain a trained sign language-to-speech translation model.
[0027] In a second aspect, an embodiment of the present invention provides a sign language translation device, comprising:
[0028] A data acquisition module, used to acquire the user's hand movement data and facial movement data;
[0029] A speech generation module, used to generate and output speech data according to the hand movement data, the facial movement data and preset scene parameters through a pre-trained sign language speech translation model;
[0030] The scene parameters are used to adjust the audio parameters of the speech data generated by the sign language speech translation model.
[0031] In a third aspect, an embodiment of the present invention provides a sign language translation device, comprising: a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the sign language translation method as described in any one of the first aspects is implemented.
[0032] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to perform the sign language translation method as described in any one of the first aspects.
[0033] In a fifth aspect, an embodiment of the present invention provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the sign language translation method as described in any one of the first aspects.
[0034] Compared with the prior art, a sign language translation method, device, equipment, storage medium and program product of an embodiment of the present invention obtains the user's hand movement data and facial movement data; then generates and outputs voice data based on the hand movement data, the facial movement data and preset scene parameters through a pre-trained sign language speech translation model; wherein the scene parameters are used to adjust the audio parameters of the voice data generated by the sign language speech translation model, so that the voice played after translation conforms to the current scene, improves the expressiveness of the synthesized voice after sign language translation, avoids the synthetic voice from sounding stiff, and thereby improves the experience of the sign language speaker interacting with others. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solution of the present invention, the drawings used in the implementation mode will be briefly introduced below. Obviously, the drawings described below are only some implementation modes of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0036] Figure 1 is a flow chart of a sign language translation method provided by an embodiment of the present invention;
[0037] Figure 2 is another flow chart of a sign language translation method provided by an embodiment of the present invention;
[0038] Figure 3 is a schematic diagram for collecting facial movements and hand movements provided by an embodiment of the present invention;
[0039] Figure 4 is a schematic diagram of the preprocessing process of the fully connected neural network model provided by an embodiment of the present invention;
[0040] Figure 5 is a schematic diagram of the corresponding relationship between audio parameters and scene parameters provided by an embodiment of the present invention;
[0041] Figure 6 is a schematic diagram of the prediction and reasoning of the sign language speech translation model provided by an embodiment of the present invention;
[0042] Figure 7 is a schematic diagram of speech playback effects under different scenes and facial expressions provided by an embodiment of the present invention;
[0043] Figure 8 is a schematic diagram of a sign language translation scene selection application provided by an embodiment of the present invention;
[0044] Fig. 9 Schematic diagram of the training process of the sign language speech translation model provided by an embodiment of the present invention;
[0045] Fig.10 is a structural block diagram of a sign language translation device provided by an embodiment of the present invention;
[0046] Fig.11 The present invention provides a structural block diagram of a sign language translation device. DETAILED DESCRIPTION
[0047] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0048] It should be noted that, in the embodiments of the present invention, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. The terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of more restrictions, the elements defined by the sentence "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements. The term "multiple or several" refers to two or more, and the same applies to "multiple / items or several / items". "And / or" describes the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B, which can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.
[0049] Some terminology concepts involved in the embodiments of the present invention are explained below.
[0050] Embedding: Embedding, also known as embedding, is a way to convert discrete variables into continuous vector representations. In neural networks, embedding can not only reduce the spatial dimension of discrete variables, but also represent the variables meaningfully.
[0051] The Fully Connected Neural Network model is a multi-layer perceptron (MLP). The principle of the perceptron is to find the most reasonable and robust hyperplane between categories. The most representative perceptron is the Support Vector Machine (SVM) algorithm.
[0052] Feed Forward Neural Network (also called feedforward network) is the simplest neural network. Neurons are arranged in layers. Each neuron is only connected to the neurons in the previous layer. It receives the output of the previous layer and outputs it to the next layer. There is no feedback between the layers.
[0053] Attention layer (Se l f-Attent ion Layer), in the neural network, the attention layer uses some network layers to calculate the weight value corresponding to the feature map, and performs a "attention mechanism" on the feature map.
[0054] See also Figure 1 , Figure 1 1 is a flow chart of a sign language translation method provided by an embodiment of the present invention. The sign language translation method specifically comprises:
[0055] S11: Acquire the user's hand movement data and facial movement data;
[0056] S12: Generate and output voice data according to the hand movement data, the facial movement data and preset scene parameters through a pre-trained sign language voice translation model;
[0057] The scene parameters are used to adjust the audio parameters of the speech data generated by the sign language speech translation model.
[0058] The audio parameters include but are not limited to pitch, tone, speed and rhythm, etc.; the scene parameters include scene categories, such as live broadcast, emotional reading, news broadcast, ordinary speech, popular science, explanation, etc., which are not specifically limited in the embodiments of the present invention. Among them, different scene parameters correspond to different audio parameters. The correspondence between scene parameters and audio parameters can be pre-defined and set, or constructed through model training, which is not specifically limited in the embodiments of the present invention.
[0059] It should be noted that the sign language translation method described in the embodiment of the present invention can be implemented by a terminal device such as a server, a computer, a mobile phone, etc. The detailed process of the above steps S11 to S12 can be referred to Figure 2 , Figure 2It is another flow chart of a sign language translation method provided by an embodiment of the present invention. In the embodiment of the present invention, a sign language speech translation model is pre-built and trained. First, hand movement data and facial movement data of a user (also referred to as a sign language speaker) are collected. For example, the hand movement and facial movement data of the user are collected simultaneously by a camera, or the hand movement and facial movement of the user are collected separately by different cameras to obtain frame-aligned hand movement data and facial movement data; then, the movement representations of the collected hand movement data and facial movement data are extracted respectively, and input into an end-to-end sign language speech translation model in combination with preset scene parameters, and speech data with audio parameters corresponding to the corresponding scene parameters is generated and output. The speech speed, intonation, rhythm, pitch, etc. of the synthesized speech are intelligently adjusted by combining the user's facial expression and the scene parameters. For example, when the user's facial expression is happy and is in a normal speaking scene, the speech speed of the synthesized speech is faster and the intonation is more cheerful, so that the speech played after translation has the emotional expression in accordance with the corresponding scene, the emotional expressiveness of the synthesized speech after sign language translation is improved, the emotional following of the translated speech is achieved, and the stiffness of the synthesized speech is avoided, thereby improving the experience of the sign language speaker interacting with others.
[0060] Specifically, step S11: obtaining the user's hand motion data and facial motion data, including:
[0061] For the currently recorded hand movement video and facial movement video of the user, a preset sliding window is used to perform image sampling and assembly to obtain the hand movement data and the facial movement data;
[0062] Wherein, each frame of hand movement image in the hand movement data is aligned with each frame of hand movement image in the facial movement data.
[0063] For example, a sliding window with a set window length and a set sliding speed can be used to sample and assemble the hand motion data and facial motion data of the video currently recorded by the user, so that hand motion data including several frames of hand motion images and facial motion data including several frames of hand motion images can be obtained. It should be noted that in the embodiment of the present invention, there is no specific restriction on the set window length and the set sliding speed of the sliding window, and the user can set them according to actual needs.
[0064] like Figure 3As shown, a facial action camera and a hand action camera are used to capture the user's facial actions and hand actions respectively, wherein the facial action camera and the hand action camera need to be pre-aligned in time points and start recording at the same time to ensure that the time frames of each frame of hand action image and each frame of facial action image in the video recorded by the two cameras are aligned, so as to avoid the problem of inaccurate emotional expression of the synthesized speech due to the mismatch between the user's facial actions and hand actions, and realize the emotional following of the translated speech. Then, a sliding window with a window length of 5s and a sliding speed of 0.1s per frame is used to sample and assemble the captured hand action video images and facial action video images, forming hand action data with 50 frames of hand action images and facial action data with 50 frames of facial action images.
[0065] Specifically, step S12: generating and outputting speech data according to the hand motion data, the facial motion data and the preset scene parameters through a pre-trained sign language speech translation model, including:
[0066] Preprocessing the hand motion data and the facial motion data respectively to generate a first feature matrix corresponding to the hand motion data and a second feature matrix corresponding to the facial motion data;
[0067] The first feature matrix, the second feature matrix and the scene parameters are input into the sign language speech translation model to generate and output the speech data.
[0068] Further, preprocessing the hand motion data and the facial motion data respectively to generate a first feature matrix corresponding to the hand motion data and a second feature matrix corresponding to the facial motion data includes:
[0069] Inputting several frames of hand motion images in the hand motion data into a preset fully connected neural network model respectively to obtain a first feature vector of the corresponding hand motion image;
[0070] Connect all the first eigenvectors to obtain a first eigenmatrix;
[0071] Inputting several frames of facial action images in the facial action data into the fully connected neural network model respectively to obtain second feature vectors of corresponding facial action images;
[0072] All the second eigenvectors are connected to obtain a second eigenmatrix.
[0073] In the embodiment of the present invention, the hand motion data and facial motion data acquired in step S11 need to be embedded with a representation vector. Figure 4As shown, for hand action data including 50 frames of hand action images and facial action data including 50 frames of facial action images, each frame of facial action image and each frame of hand action image are respectively input into a fully connected neural network model including 1 input layer, 3 hidden layers and 1 output layer, and a 256-dimensional Embedding representation vector (i.e., the above-mentioned first feature vector) of the corresponding hand action image and a 256-dimensional Embedding representation vector (i.e., the above-mentioned second feature vector) of the corresponding facial action image are output. Then, the first feature vectors of 50 frames and the second feature vectors of 50 frames are respectively connected to form a 50*256 first feature matrix of the hand action data and a 50*256 second feature matrix of the facial action data.
[0074] In addition, users can choose to preset scene parameters before voice translation; for example, according to the scene setting prompt of the terminal device, set the scene category of the current translation content (i.e., the hand movement data and facial movement data obtained in step 11 above). By setting the scene parameters, the sign language speech translation model can better restore the speech pronunciation characteristics of the corresponding scene. Users can select a scene category from the scene categories supported by the terminal device (such as live broadcast, emotional reading, news broadcast, ordinary speaking, etc.) to set the scene parameters; under different scene parameters, the following audio parameters will be controlled and adjusted, such as Figure 5 Taking normal speech as the reference value, the audio parameter settings in different scenarios will be different.
[0075] Then, the first feature matrix, the second feature matrix and the scene parameters set by the user are input into the sign language speech translation model to generate and output the speech data.
[0076] The sign language speech translation model includes an encoder, a fully connected layer network and a decoder, and its network structure is as follows: Figure 6 shown.
[0077] The encoder part includes multiple layers of sub-encoders in a stacked structure, for example, including 3 layers of stacked sub-encoders, each of which includes 1 layer of the first attention layer (Self-Attention Layer) and 1 layer of the first forward network (Feed Forward Neura l Network). After the first feature matrix and the second feature matrix are input into the encoder, the encoder is calculated to obtain the encoded embedding sequence.
[0078] Then, the audio parameters corresponding to the scene parameters set by the user are converted into a third feature vector. For example, the audio parameters (pitch, tone, speed, and prosody) corresponding to the scene parameters set by the user are formed into a 4*1 third feature vector V, and then the third feature vector V is passed through a 100-node fully connected layer network to obtain audio parameter embedding. After that, the embedding sequence output by the encoder is concat-operated to form the embedding input data of the decoder.
[0079] The decoder uses a 3-layer sub-decoder stack similar to the encoder. The sub-decoder network structure is similar to the sub-encoder, which is also composed of 1 second attention layer + 1 second forward network. After calculation by the decoder, the predicted Mel spectrum sequence will be output.
[0080] Finally, the predicted Mel-spectrogram sequence output by the sign language speech translation model is converted into speech data. For example, the predicted Mel-spectrogram sequence output by the sign language speech translation model is input into a neural network vocoder to obtain the final speech data, which is then played in a player.
[0081] By introducing the user's facial movements (also referred to as facial movement expressions, facial expressions) and scene parameters, the embodiment of the present invention can allow the voice played after the user's sign language translation to obtain different effects in various scenes and emotions, such as Figure 7 and Figure 8 As shown, the emotional expressiveness of the synthesized speech after sign language translation is improved, and the emotional following of the translated speech is achieved.
[0082] In an optional embodiment, the method further includes the following training process of the sign language speech translation model:
[0083] Collect hand voice video data of multiple target objects in different scene categories;
[0084] Acquire frame-aligned hand movement training video, facial movement training video and voice training data from the hand and voice video object to obtain a plurality of training data;
[0085] Preprocessing the hand movement training video and the facial movement training video in the training data to generate a third feature matrix of the hand movement training video and a fourth feature matrix of the facial movement training video;
[0086] Converting speech training data in the training data into a Mel-spectrogram sequence;
[0087] Vectorizing the audio parameters corresponding to the scene category to which the training data belongs to obtain an audio embedding vector;
[0088] The third feature matrix, the fourth feature matrix, and the audio embedding vector are input into the sign language-to-speech translation model, the mel-spectrogram sequence is used as output supervision of the sign language-to-speech translation model, and the sign language-to-speech translation model is trained until preset training conditions are met, so as to obtain a trained sign language-to-speech translation model.
[0089] Exemplarily, the training process of the sign language speech translation model mainly includes: data preparation and model training. In the data preparation stage, no less than 1000 hours of hand speech video data can be recorded, and the number of people participating in the recording is no less than 100. It is required that the personnel participating in the recording have sound voice functions and can use sign language, and can make sign language movements while speaking according to the set scene category requirements during the recording process, and make corresponding emotional movements and expressions on the face. Then the recorded hand voice video data is processed to form training data, for example, video clips and audio clips of different people in different scenes are extracted to construct training data. Among them, each training data includes frame-aligned hand movement training videos, facial movement training videos and corresponding speech training data with emotional expression. After that, the hand movement training videos and facial movement training videos in each training data are preprocessed to generate the third feature matrix corresponding to the corresponding hand movement training video and the fourth feature matrix corresponding to the facial movement training video as the input part of the model. At the same time, the speech training data in the training data is converted into a Mel spectrum (Me l) sequence by signal processing as the output supervision part of the model, which is used to calculate the model output error value Loss.
[0090] It should be noted that the process of preprocessing the hand movement training video and the facial movement training video in each training data can refer to the process of preprocessing the hand movement data and the facial movement data described above, which will not be repeated here.
[0091] Model training: Fig. 9As shown, after the third characteristic matrix and the fourth characteristic matrix corresponding to the training data are input into the encoder, the encoder is calculated to obtain the encoded embedding training sequence. The corresponding audio parameters (pitch, tone, speed, and prosody) under the set scene parameters are formed into a 4*1 embedding vector, and then the embedding vector is passed through a 100-node fully connected layer network to obtain audio parameter training embedding, and then concat operation is performed with the above-mentioned encoded embedding training sequence to form the input embedding data of the decoder. After calculation by the decoder, Mel spectrum speech data will be output. After that, the Mel spectrum speech data output by the model prediction is compared with the Mel spectrum sequence converted from the speech training data in the training data and the error value is calculated to obtain the error value Loss of the two. It should be understood that in the model training process, the real speech training data is the target output for guiding model learning. By constantly correcting the predicted output of the model, the Mel spectrum sequence corresponding to the real speech data is finally approached to complete the model training. Finally, the error value Loss calculated above is sent back to the decoder, and the decoder parameters are iteratively optimized until the Loss between the Mel-spectrogram speech data predicted by the decoder and the actual Mel-spectrogram sequence of the training data is less than the preset threshold. The training process is determined to be completed and the trained sign language speech translation model is output.
[0092] Compared with the prior art, the embodiment of the present invention can intelligently adjust the emotional expressiveness of the synthesized speech according to the user's facial movements and preset scene parameters, and can effectively solve the problem of the current sign language speech translation system having a stiff pronunciation and lacking emotions; different from the traditional sign language speech translation system, the present system adopts an end-to-end sign language speech translation model, by simultaneously collecting the user's hand movements and facial movements, expressing semantic content by hand movements, and expressing emotional content by facial movements, so that the frame-to-frame aligned action language content and emotions can be considered at the same time, thereby achieving the emotional following effect of the translated speech; for example, when the sign language speaker has a sad facial expression, the sign language translation speech will have a low tone and a slow speech speed; when the sign language speaker has a happy facial expression, the sign language translation speech will have a high tone and a fast speech speed; and the preset scene parameters can allow the translated speech to more reflect the characteristics of the set scene on the basis of emotional expression, for example, when the preset scene is emotional reading, the translation speech pronunciation speed rhythm, thereby improving the emotional expressiveness of the synthesized speech. In particular, it can improve the experience of deaf-mute people in using sign language translation functions in scenarios such as video interaction and video production, and increase the fluency and accuracy of interaction between deaf-mute people and normal people.
[0093] See also Fig.10 , Fig.10: is a structural block diagram of a sign language translation device provided by an embodiment of the present invention, wherein the sign language translation device comprises:
[0094] A data acquisition module 11 is used to acquire the user's hand movement data and facial movement data;
[0095] A speech generation module 12, for generating and outputting speech data according to the hand motion data, the facial motion data and preset scene parameters through a pre-trained sign language speech translation model;
[0096] The scene parameters are used to adjust the audio parameters of the speech data generated by the sign language speech translation model.
[0097] In an optional embodiment, the speech generation module 12 includes:
[0098] A preprocessing unit, used to preprocess the hand motion data and the facial motion data respectively, to generate a first feature matrix corresponding to the hand motion data and a second feature matrix corresponding to the facial motion data;
[0099] The speech data generating unit is used to input the first feature matrix, the second feature matrix and the scene parameter into the sign language speech translation model to generate and output the speech data.
[0100] In an optional embodiment, the preprocessing unit includes:
[0101] A first vector subunit, used to input several frames of hand motion images in the hand motion data into a preset fully connected neural network model to obtain a first feature vector of the corresponding hand motion image;
[0102] A first matrix subunit, used for connecting all the first eigenvectors to obtain a first eigenmatrix;
[0103] A second vector generating subunit is used to input a plurality of frames of facial action images in the facial action data into the fully connected neural network model to obtain a second feature vector of the corresponding facial action image;
[0104] The second matrix subunit is used to connect all the second eigenvectors to obtain a second eigenmatrix.
[0105] In an optional embodiment, the data acquisition module 11 includes:
[0106] A window sliding unit, used for sampling and assembling the hand movement video and the facial movement video of the user currently being recorded by using a preset sliding window to obtain the hand movement data and the facial movement data;
[0107] Wherein, each frame of hand movement image in the hand movement data is aligned with each frame of hand movement image in the facial movement data.
[0108] In an optional embodiment, the audio parameters include pitch, tone, speed and rhythm; the scene parameters include scene categories; wherein different scene parameters correspond to different audio parameters.
[0109] In an optional embodiment, the method further includes:
[0110] A video acquisition module, used to collect hand and voice video data of multiple target objects in different scene categories;
[0111] A training data acquisition module, used to acquire frame-aligned hand movement training video, facial movement training video and voice training data from the hand and voice video object to obtain a plurality of training data;
[0112] A training data preprocessing module, used for preprocessing the hand movement training video and the facial movement training video in the training data to generate a third feature matrix of the hand movement training video and a fourth feature matrix of the facial movement training video;
[0113] A serialization module, used for converting speech training data in the training data into a Mel spectrum sequence;
[0114] A vectorization module, used to perform vectorization processing on the audio parameters corresponding to the scene category to which the training data belongs, to obtain an audio embedding vector;
[0115] The model training module is used to input the third feature matrix, the fourth feature matrix, and the audio embedding vector into the sign language-speech translation model, use the mel spectrum sequence as the output supervision of the sign language-speech translation model, train the sign language-speech translation model until the preset training conditions are met, and obtain a trained sign language-speech translation model.
[0116] It should be noted that the working process of each module in the sign language translation device described in the embodiment of the present invention can refer to the working process of the sign language translation method described in the above embodiment, and the technical effect achieved is the same as the sign language translation method described in the above embodiment, which will not be repeated here.
[0117] See also Fig.11 , Fig.11: is a structural block diagram of a sign language translation device provided in an embodiment of the present invention. The sign language translation device comprises a processor 21, a memory 22, and a computer program stored in the memory 22 and executable on the processor 21. When the processor 21 executes the computer program, the steps in the above-mentioned various sign language translation method embodiments are implemented, such as steps S11 to S12.
[0118] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory 22 and executed by the processor 21 to implement the present invention. The one or more modules / units may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program in the sign language translation device.
[0119] The sign language translation device may include, but is not limited to, a processor 21 and a memory 22. Those skilled in the art will appreciate that the schematic diagram is merely an example of a sign language translation device and does not constitute a limitation on the sign language translation device. The device may include more or fewer components than shown in the diagram, or may combine certain components, or different components. For example, the sign language translation device may also include input and output devices, network access devices, buses, and the like.
[0120] The processor 21 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor 21 is the control center of the sign language translation device, and various interfaces and lines are used to connect various parts of the entire sign language translation device.
[0121] The memory 22 can be used to store the computer program and / or module, and the processor 21 realizes various functions of the sign language translation device by running or executing the computer program and / or module stored in the memory 22, and calling the data stored in the memory 22. The memory 22 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 22 can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Med ia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (F l ash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0122] Wherein, if the module / unit integrated in the sign language translation device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor 21, the steps of the above-mentioned various method embodiments can be implemented. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc.
[0123] It should be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative effort.
[0124] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, many improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A sign language translation method, characterized in that: include: Obtaining the user's hand motion data and facial motion data; Generate and output voice data according to the hand movement data, the facial movement data and preset scene parameters through a pre-trained sign language voice translation model; The scene parameters are used to adjust the audio parameters of the speech data generated by the sign language speech translation model.
2. The sign language translation method according to claim 1, characterized in that: The generating and outputting voice data according to the hand motion data, the facial motion data and the preset scene parameters through a pre-trained sign language voice translation model includes: Preprocessing the hand motion data and the facial motion data respectively to generate a first feature matrix corresponding to the hand motion data and a second feature matrix corresponding to the facial motion data; The first feature matrix, the second feature matrix and the scene parameters are input into the sign language speech translation model to generate and output the speech data.
3. The sign language translation method according to claim 2, characterized in that: The preprocessing of the hand motion data and the facial motion data respectively to generate a first feature matrix corresponding to the hand motion data and a second feature matrix corresponding to the facial motion data comprises: Inputting several frames of hand motion images in the hand motion data into a preset fully connected neural network model respectively to obtain a first feature vector of the corresponding hand motion image; Connect all the first eigenvectors to obtain a first eigenmatrix; Inputting several frames of facial action images in the facial action data into the fully connected neural network model respectively to obtain second feature vectors of corresponding facial action images; All the second eigenvectors are connected to obtain a second eigenmatrix.
4. The sign language translation method according to claim 1, wherein: The obtaining of the user's hand motion data and facial motion data includes: For the currently recorded hand movement video and facial movement video of the user, a preset sliding window is used to perform image sampling and assembly to obtain the hand movement data and the facial movement data; Wherein, each frame of hand movement image in the hand movement data is aligned with each frame of hand movement image in the facial movement data.
5. The sign language translation method according to claim 1, wherein: The audio parameters include pitch, tone, speed and rhythm; the scene parameters include scene categories; wherein different scene parameters correspond to different audio parameters.
6. The sign language translation method according to claim 1, wherein: The method also includes the following training process of the sign language speech translation model: Collect hand voice video data of multiple target objects in different scene categories; Acquire frame-aligned hand movement training video, facial movement training video and voice training data from the hand and voice video object to obtain a plurality of training data; Preprocessing the hand movement training video and the facial movement training video in the training data to generate a third feature matrix of the hand movement training video and a fourth feature matrix of the facial movement training video; Converting speech training data in the training data into a Mel-spectrogram sequence; Vectorizing the audio parameters corresponding to the scene category to which the training data belongs to obtain an audio embedding vector; The third feature matrix, the fourth feature matrix, and the audio embedding vector are input into the sign language-to-speech translation model, the mel-spectrogram sequence is used as output supervision of the sign language-to-speech translation model, and the sign language-to-speech translation model is trained until preset training conditions are met, so as to obtain a trained sign language-to-speech translation model.
7. A sign language translation device, characterized in that: include: A data acquisition module, used to acquire the user's hand movement data and facial movement data; A speech generation module, used to generate and output speech data according to the hand movement data, the facial movement data and preset scene parameters through a pre-trained sign language speech translation model; The scene parameters are used to adjust the audio parameters of the speech data generated by the sign language speech translation model.
8. A sign language translation device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements the sign language translation method according to any one of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the sign language translation method according to any one of claims 1 to 6.
10. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the sign language translation method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Sign language and voice conversion method and device, storage medium and terminal equipment
CN111310530A
Sign language translation method and device, customer service method and device, communication method, equipment and readable medium
CN113822187A
Sign language recognition method and device, electronic equipment and computer storage medium
CN115063886A
Cited By
Sign language animation automatic generation method and device based on semantic driving, and computer storage medium
CN119338960A
