Method for time synchronization of speech and motion

By calculating the synchronization time difference between speech and sign language, and dynamically adjusting the duration of the sign language action video, the problem of synchronization between sign language and speech is solved, and the visual experience of the hearing-impaired and the accuracy of sign language broadcasting are improved.

CN115497499BActive Publication Date: 2024-09-17ALIBABA (CHINA) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211060769.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-30
Publication Date
2024-09-17
Estimated Expiration
2042-08-30

AI Technical Summary

Technical Problem

In the existing technology, it is difficult for sign language and speech to be consistent in synchronous broadcast scenarios, resulting in hearing-impaired people being unable to accurately understand sign language content, resulting in poor user experience, and existing solutions being costly or causing distortion of sign language movements.

Method used

By extracting speech text information, determining the speech duration, using preset algorithm processing to obtain the initial action video, calculating the synchronization time difference, and dynamically adjusting the sign language action video duration when the difference is greater than the threshold, achieving synchronization of voice and sign language actions.

Benefits of technology

It achieves time synchronization of speech and sign language movements without manual intervention, improves user experience, and reduces the cost of sign language speed adjustment and the risk of movement distortion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115497499B
    Figure CN115497499B
Patent Text Reader

Abstract

The method for synchronizing speech and action time provided in the embodiments of the present specification includes extracting text information of the current speech and determining the speech duration of the current speech; processing the text information through a preset algorithm to obtain an initial action video; determining the current synchronization time difference between the current speech and the initial action video according to the speech duration and the action duration of the initial action video; when the current synchronization time difference is greater than or equal to a preset time threshold, processing the expected action generation duration and the text information through the preset algorithm to determine the target action video; the method uses an algorithm to automatically generate a sign language action video with controllable length, and in the process of generating the sign language action video, the synchronization time difference between the speech and the sign language action video is perceived through the duration of the sign language action video and the current speech duration, so as to achieve synchronization between the current speech and the sign language action and improve the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present specification relate to the field of computer technology, and in particular to two methods for time synchronization of speech and action. Background Art

[0002] Sign language is the language used by people with hearing impairments to communicate with each other. The way sign language is expressed and the speed at which information is conveyed are different from the natural language of people with normal hearing. Overall, the speed of sign language transmission is slower. In some television news programs with sign language translation, in order to keep up with the speaking speed of the anchor, sign language teachers usually omit a lot of content and do not have time to organize the sign language in more detail, resulting in a large number of people with hearing impairments being unable to understand the meaning of the sign language expressions on television news.

[0003] Similarly, in the digital human (i.e. virtual human) sign language scenario, the same problem exists. It is impossible to ensure that the timing of the host's broadcast voice and the sign language movements of the digital human doing the sign language broadcast are consistent, resulting in a poor user experience for people with normal hearing. Summary of the invention

[0004] In view of this, the embodiments of this specification provide two methods for voice and action time synchronization. One or more embodiments of this specification also relate to two devices for voice and action time synchronization, an augmented reality AR, virtual reality VR, mixed reality MR or extended reality XR device, a computing device, a computer-readable storage medium and a computer program to solve the technical defects existing in the prior art.

[0005] According to a first aspect of an embodiment of this specification, a method for synchronizing speech and motion time is provided, including:

[0006] Extracting text information of the current speech and determining the speech duration of the current speech;

[0007] Processing the text information through a preset algorithm to obtain an initial action video;

[0008] Determining a current synchronization time difference between the current voice and the initial action video according to the voice duration and the action duration of the initial action video;

[0009] When the current synchronization time difference is greater than or equal to the preset time threshold, the expected action generation duration and the text information are processed by the preset algorithm to determine the target action video.

[0010] The expected action generation duration is determined according to the current synchronization time difference.

[0011] According to a second aspect of an embodiment of this specification, a device for synchronizing speech and action time is provided, including:

[0012] A first text extraction module is configured to extract text information of the current speech and determine the speech duration of the current speech;

[0013] A first action acquisition module is configured to process the text information through a preset algorithm to obtain an initial action video;

[0014] A first time difference determination module is configured to determine a current synchronization time difference between the current voice and the initial action video according to the voice duration and the action duration of the initial action video;

[0015] The first target action determination module is configured to process the expected action generation duration and the text information through the preset algorithm to determine the target action video when the current synchronization time difference is greater than or equal to the preset time threshold.

[0016] The expected action generation duration is determined according to the current synchronization time difference.

[0017] According to a third aspect of an embodiment of this specification, a method for synchronizing speech and motion time is provided, including:

[0018] Extracting text information of the current speech of the speaker and determining the speech duration of the current speech;

[0019] Processing the text information through a preset algorithm to obtain an initial action video of the virtual human to be displayed;

[0020] Determining a current synchronization time difference between the current voice and the initial action video according to the voice duration and the action duration of the initial action video;

[0021] When the current synchronization time difference is greater than or equal to the preset time threshold, the expected action generation duration and the text information are processed by the preset algorithm to determine the target action video to be displayed by the virtual person,

[0022] The expected action generation duration is determined according to the current synchronization time difference.

[0023] According to a fourth aspect of the embodiments of this specification, a device for synchronizing speech and action time is provided, including:

[0024] A second text extraction module is configured to extract text information of the current speech of the speaker and determine the speech duration of the current speech;

[0025] A second action acquisition module is configured to process the text information through a preset algorithm to obtain an initial action video of the virtual person to be displayed;

[0026] A second time difference determination module is configured to determine a current synchronization time difference between the current voice and the initial action video according to the voice duration and the action duration of the initial action video;

[0027] The second target action determination module is configured to process the expected action generation duration and the text information through the preset algorithm to determine the target action video to be displayed by the virtual person when the current synchronization time difference is greater than or equal to the preset time threshold,

[0028] The expected action generation duration is determined according to the current synchronization time difference.

[0029] According to a fifth aspect of the embodiments of this specification, an augmented reality (AR), virtual reality (VR), mixed reality (MR), or extended reality (XR) device is provided, including:

[0030] Memory and processor;

[0031] The memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the above-mentioned method for time synchronization of voice and action are implemented.

[0032] According to a sixth aspect of an embodiment of this specification, a computing device is provided, including:

[0033] Memory and processor;

[0034] The memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the above-mentioned method for time synchronization of voice and action are implemented.

[0035] According to a seventh aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores computer-executable instructions, and when the instructions are executed by a processor, the steps of the above-mentioned method for voice and action time synchronization are implemented.

[0036] According to an eighth aspect of the embodiments of this specification, a computer program is provided, wherein when the computer program is executed in a computer, the computer is caused to execute the steps of the above-mentioned method for time synchronization of speech and action.

[0037] An embodiment of the present specification implements a method for synchronizing speech and action time, including extracting text information of a current speech and determining the speech duration of the current speech; processing the text information through a preset algorithm to obtain an initial action video; determining a current synchronization time difference between the current speech and the initial action video based on the speech duration and the action duration of the initial action video; and when the current synchronization time difference is greater than or equal to a preset time threshold, processing the expected action generation duration and the text information through the preset algorithm to determine a target action video.

[0038] Specifically, the method adopts an algorithm to generate an initial action video (sign language action video) with controllable length, and in the process of generating the sign language action video, the synchronization time difference between the voice and the sign language action video is perceived through the duration of the sign language action video and the current voice duration. When it is judged that the voice and the sign language action are not synchronized according to the synchronization time difference, the duration of the sign language action video can be dynamically controlled through a preset algorithm, so that the duration of the sign language action video finally obtained is the same as or close to the current voice duration, thereby realizing the synchronization of the current voice and the sign language action. The whole process is fully automated without the need for human intervention, and the user experience is good. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 This is a schematic diagram of a specific application scenario of a method for voice and action time synchronization provided by an embodiment of this specification;

[0040] Figure 2 is a flow chart of a method for time synchronization of speech and action provided by one embodiment of this specification;

[0041] Figure 3 is a process flow chart of a method for synchronizing speech and motion time provided by an embodiment of the present specification;

[0042] Figure 4 It is a structural diagram of a device for synchronizing speech and motion time provided by an embodiment of this specification;

[0043] Figure 5 is a method flow chart of another method for voice and action time synchronization provided by an embodiment of this specification;

[0044] Figure 6 It is a structural block diagram of a computing device provided by an embodiment of this specification. DETAILED DESCRIPTION

[0045] Many specific details are described in the following description to facilitate a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of this specification, so this specification is not limited to the specific implementation disclosed below.

[0046] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.

[0047] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0048] First, the terms involved in one or more embodiments of this specification are explained.

[0049] Hearing person: A person with normal hearing.

[0050] Hearing impaired: A person who is hard of hearing.

[0051] Sign language: a language used by the hearing-impaired to communicate with each other, which transmits information through visual signals such as gestures, facial expressions, and body movements.

[0052] ASR: Automatic Speech Recognition.

[0053] text: natural language text (speech recognition result).

[0054] gloss: Sign Language Motion Annotation, a natural language vocabulary for annotating sign language motions.

[0055] In the digital human (i.e. virtual human) sign language scene, in order to make the digital human keep up with the host's speaking speed, many of the digital human's sign language movements will be omitted, and there will be no time to organize the digital human's sign language movements in a more detailed manner, resulting in a large number of hearing-impaired people actually not being able to understand the sign language movements expressed by the digital human.

[0056] Based on this technical problem, there are currently ways to solve it by adjusting the sign language speed offline or proportionally. Specifically, offline adjustment can be understood as mainly synthesizing speech and sign language movements offline. Manual intervention can be performed during the offline synthesis process to simplify the sign language content, so as to maintain the consistency of speech and sign language as much as possible. However, this solution is relatively costly to use and must be simplified by a dedicated person. In addition, there are situations where the simplification is too much or too little, and it may be necessary to rework twice or three times, which has a high labor cost. Proportional adjustment of the sign language speed can be understood as, because sign language is expressed by digital humans, in order to make sign language keep up with the speed of speech, the sign language speed is forcibly increased, such as increasing the movement speed of the digital human to 1.5 times. However, the disadvantage of this solution is that it will cause distortion of the movement, and the speed ratio setting depends on experience or statistical values, and it is impossible to achieve a better speech and sign language synchronization effect for every sentence.

[0057] Based on this, in this specification, two methods for voice and action time synchronization are provided. One or more embodiments of this specification also involve two devices for voice and action time synchronization, an augmented reality AR, virtual reality VR, mixed reality MR or extended reality XR device, a computing device, a computer-readable storage medium and a computer program, which are described in detail one by one in the following embodiments.

[0058] See also Figure 1 , Figure 1 A schematic diagram of a specific application scenario of a method for time synchronization of speech and action provided according to an embodiment of the present specification is shown.

[0059] Figure 1 The system includes a terminal 102 and a server 104, wherein the terminal 102 includes but is not limited to a mobile terminal (such as a mobile phone, a tablet computer, etc.) and a fixed terminal (such as a desktop computer).

[0060] In actual applications, the method for voice and action time synchronization can be applied to the client side or the server side. For ease of understanding, the method for voice and action time synchronization provided in the embodiment of this specification is applied to the server side as an example for detailed introduction.

[0061] The method of voice and action time synchronization is applied to a news broadcasting scenario to achieve time synchronization between the voice of a news anchor and the sign language action of a sign language digital human as an example for detailed description.

[0062] During specific implementation, the server 104 receives the voice of the news anchor currently reporting the news at the terminal 102, and converts the voice into text corresponding to the voice in real time through ASR, and then converts the text into sign language text gloss through the text2gloss algorithm model; then the sign language text gloss is converted into sign language skeletal movements through the gloss2sign algorithm model, and rendered into a digital human sign language movement video.

[0063] In order to ensure the synchronization of the news anchor's voice and the sign language of the sign language digital human, each time after the digital human's sign language action video is obtained, the synchronization time difference will be calculated based on the video length of the digital human's sign language action video and the voice length of the news anchor. When it is determined that the digital human's sign language action is not synchronized with the news anchor's voice time based on the synchronization time difference, the digital human's sign language action video is automatically adjusted through the above-mentioned text2gloss algorithm model and gloss2sign algorithm model until the digital human's sign language action is synchronized with the news anchor's voice time, and the adjusted digital human's sign language action video is returned to the terminal 102 for playback and display, bringing a better visual experience to the hearing-impaired users.

[0064] See also Figure 2 , Figure 2 A flow chart of a method for voice and action time synchronization provided according to an embodiment of the present specification is shown, which specifically includes the following steps.

[0065] Step 202: extract text information of the current speech, and determine the speech duration of the current speech.

[0066] Specifically, the method for synchronizing speech and action time provided in the embodiments of this specification can be applied to the client side or the server side, that is, without considering the specific implementation speed and efficiency, the method for synchronizing speech and action time can be applied to the client side to implement speech-to-text conversion and specific implementation of the algorithm on the client side, and can also implement speech-to-text conversion and specific implementation of the algorithm on the server side. For ease of understanding, in the embodiments of this specification, the method for synchronizing speech and action time is applied to the server side as an example for detailed description.

[0067] Among them, the current voice can be understood as the voice currently emitted by any type of speaker, such as the news broadcast voice of a news anchor, the product introduction voice of a product anchor, the game commentary voice of a game anchor, etc.

[0068] Taking the news broadcast voice of the news anchor as an example, the text information of the current voice is extracted, and the voice duration of the current voice is determined. It can be understood that the server extracts the text information of the current news broadcast voice and determines the voice duration of the current news broadcast voice; for example, the current news broadcast voice is: Dear audience friends, good evening everyone, then the extracted text information of the current voice is: Dear audience friends, good evening everyone, and the voice duration of the current news broadcast voice is determined to be 3 seconds.

[0069] The current voice can be understood as the voice received by the server from the client in real time, such as the voice of a real-time news broadcast; it can also be the voice of an offline video obtained by the server from a database in real time, such as the voice of an offline TV series or movie.

[0070] Step 204: Process the text information through a preset algorithm to obtain an initial action video.

[0071] Among them, the preset algorithms include motion recognition models (such as text2gloss, text-to-gloss text to sign language motion annotation) and motion editing models (gloss2sign, gloss-to-pose sign language motion annotation to gesture).

[0072] Then, when the preset algorithm includes an action recognition model and an action editing model, the text information is processed by the preset algorithm to obtain an initial action video, which can be understood as processing the text information by the action recognition model and the action editing model to obtain an initial action video. The specific implementation method is as follows:

[0073] The step of processing the text information by a preset algorithm to obtain an initial action video corresponding to the text information includes:

[0074] Inputting the text information into an action recognition model to obtain an action text corresponding to the text information;

[0075] The action text is input into an action editing model to obtain an initial action video corresponding to the action text.

[0076] Among them, the action recognition model can be understood as any model that can recognize the text content in the text information as the corresponding gesture action text or body action text; the action editing model can be understood as any model that can obtain the corresponding action video based on the gesture action text or body action text.

[0077] A detailed introduction is given by taking the action text as a sign language action text and the initial action video as an initial sign language action video as an example.

[0078] Specifically, inputting text information into the action recognition model to obtain action text corresponding to the text information can be understood as inputting text information into the action recognition model to obtain sign language action text corresponding to the text information; inputting the action text into the action editing model to obtain an initial action video corresponding to the action text can be understood as inputting sign language action text into the action editing model to obtain an initial sign language action video corresponding to the sign language action text.

[0079] In the embodiments of this specification, an initial sign language action video corresponding to the current speech can be quickly obtained through an action recognition model and an action editing model by taking advantage of the speed of the model algorithm.

[0080] Step 206: Determine a current synchronization time difference between the current voice and the initial action video according to the voice duration and the action duration of the initial action video.

[0081] Among them, the action duration of the initial action video can be understood as the video duration of the initial action video; the current synchronization time difference between the current voice and the initial action video can be understood as the time difference control amount calculated based on the action duration of the initial action video returned by the action editing model and the voice duration of the current voice returned by ASR. Specifically, the specific implementation method of the time difference control amount is as follows:

[0082] The determining, according to the voice duration and the action duration of the initial action video, a current synchronization time difference between the current voice and the initial action video comprises:

[0083] Determining a current time difference between the current voice and the initial action video according to the voice duration and the action duration of the initial action video;

[0084] Determine the current synchronization time difference between the current voice and the initial action video according to the current time difference and the historical time difference of the historical voice,

[0085] The historical time difference is determined according to the voice duration of the historical voice and the action duration of the historical action video corresponding to the historical voice.

[0086] For example, if the voice duration of the current voice is 5 seconds and the action duration of the initial action video is 10 seconds, then the current time difference between the current voice and its corresponding initial action video is 5 seconds; and if there is historical voice in the current voice, the current synchronization time difference between the current voice and the initial action video can be calculated based on the current time difference and the historical time difference of the historical voice. If there is no historical voice in the current voice, the historical time difference of the historical voice is set to empty, such as 0, that is, the current synchronization time difference between the current voice and the initial action video is calculated based on the current time difference and the historical time difference of the historical voice whose value is 0.

[0087] In the case where historical speech exists, the calculation method of the historical time difference of the historical speech is the same as the calculation method of the current time difference, which will not be repeated here.

[0088] In the embodiment of the present description, the current synchronization time difference between the current voice and the initial action video corresponding to the current voice can be accurately calculated based on the voice duration of the current voice and the action duration of the initial action video corresponding to the current voice, and the time synchronization status of the current voice and the initial action video corresponding to the current voice can be determined based on the current synchronization time difference.

[0089] Specifically, when there is a historical voice in the current voice, the specific implementation method of calculating the current synchronization time difference between the current voice and its corresponding initial action video according to the current time difference and the historical time difference of the historical voice is as follows:

[0090] The determining, according to the current time difference and the historical time difference of the historical voice, the current synchronization time difference between the current voice and the initial action video comprises:

[0091] Determine a time difference change value according to the current time difference and the historical time difference of the previous historical speech;

[0092] The current synchronization time difference between the current voice and the initial action video is determined according to the current time difference, the accumulated historical time difference of the historical voice, and the time difference change value.

[0093] Among them, the historical time difference of the previous historical speech can be understood to be calculated based on the speech duration of the previous historical speech and the action duration of the historical action video corresponding to the previous historical speech, and its calculation method is the same as the calculation method of the current time difference.

[0094] After determining the current time difference and the historical time difference of the previous historical speech immediately before the current speech, the time difference change value can be calculated according to the current time difference and the historical time difference of the previous historical speech. See Formula 1 for the specific calculation process.

[0095] Δt′n =Δt n -Δt n-1 Formula 1

[0096] Among them, Δt n Indicates the current time difference, Δt n-1 Indicates the historical time difference of the previous historical speech.

[0097] The cumulative historical time difference of historical speech It can be understood as the cumulative value of the historical time difference of the previous n historical voices of the current voice. For example, the current voice has two historical voices, the historical time difference of the first historical voice is 3 seconds, and the historical time difference of the second historical voice is 2 seconds, then the cumulative historical time difference of the historical voice is 5 seconds.

[0098] Then, after determining the current time difference, the accumulated historical time difference of the historical voice, and the time difference change value, the current synchronization time difference between the current voice and the initial action video can be calculated based on the current time difference, the accumulated historical time difference of the historical voice, and the time difference change value. See Formula 2 for the specific calculation process.

[0099] C n =K1*Δt n +K2*ΔT n +K3*Δt′ n Formula 2

[0100] Among them, K1, K2, and K3 are preset adjustment proportional constants.

[0101] In practical applications, the specific method of calculating the time difference control amount is as follows:

[0102] The time difference includes the time difference Δt of the nth sentence n , which is the time difference of the current speech (it should be noted that sign language needs to match the speed of sound, so it is acceptable for the sign language speed to be faster than the sound, so ), the cumulative time difference of the first n sentences That is, the accumulated historical time difference of the historical speech of the current speech, and the time difference change trend Δt′ n =Δt n -Δt n-1 , that is, the time difference change value; the goal is to align each sentence as much as possible, and the time difference, cumulative time difference, time difference fluctuation, etc. will affect the synchronization effect of sound and sign language. Therefore, the time difference control amount C can be calculated based on the time difference, cumulative time difference, and time difference fluctuation. n , which is the current synchronization time difference.

[0103] In addition, when calculating the cumulative time difference and the time difference change trend, in addition to using the formula in the above embodiment, the calculation method of the calculation interval can also be adjusted, such as Δt′ n =(Δt n -Δt n-2 ) / 2, etc. The difference in calculation method does not affect the implementation of the overall solution, and the embodiments of this specification do not impose any limitation on this.

[0104] In the embodiments of the present specification, the time difference control amount is calculated by the voice duration of the current voice and the action duration of the corresponding initial action video. Subsequently, it can be determined whether the current voice and the corresponding initial action video are synchronized based on the time difference control amount, and the initial action video can be further adjusted more accurately based on the time difference control amount.

[0105] Step 208: When the current synchronization time difference is greater than or equal to a preset time threshold, the expected action generation duration and the text information are processed through the preset algorithm to determine the target action video.

[0106] The expected action generation duration is determined according to the current synchronization time difference.

[0107] The preset time threshold can be set according to the actual application, for example, the preset time threshold is set to 2 seconds or 3 seconds, etc. In the actual application, the preset time threshold can be understood as the acceptable time difference between the current voice and its corresponding sign language action video. If the current synchronization time difference is greater than or equal to the preset time threshold, it can be said that the time difference between the current voice and its corresponding sign language action video is large, and there will be obvious synchronization. At this time, the sign language action video corresponding to the current voice will be regenerated.

[0108] Taking the preset time threshold of 2 seconds as an example, if the current synchronization time difference between the current voice and the initial action video is calculated to be 3 seconds according to the calculation method of the above embodiment, it can be determined that the current synchronization time difference is greater than the preset time threshold. At this time, the expected action generation duration and text information can be processed through the above preset algorithm to obtain the target action video corresponding to the current voice.

[0109] Specifically, the expected action generation duration can be understood as the expected generation duration of the sign language action video corresponding to the current voice, which is determined based on the current synchronization time difference. When the current synchronization time difference is greater than or equal to the preset time threshold, it is determined that the current voice is not synchronized with the initial action video corresponding to it, and it is necessary to regenerate the corresponding target action video. The parameter of the expected action generation duration should be considered, and the target action video should be regenerated according to the preset algorithm in combination with the text information of the current voice.

[0110] In practical applications, there are at least two specific implementation methods for the expected action generation duration. The following takes the two implementation methods as examples to introduce the specific calculation method of the expected action generation duration.

[0111] The first method, wherein the duration of the expected action and the text information are generated and processed by the preset algorithm to determine the target action video, further comprises:

[0112] Determine the expected action generation duration according to the voice duration, the average action duration, and the current synchronization time difference,

[0113] The average action duration is determined by the action duration of the historical action video and the action duration of the initial action video.

[0114] The average action duration can be understood as the average duration of the action duration of the historical action video plus the action duration of the initial action video.

[0115] Specifically, the expected action generation duration (i.e., the expected generation length) is used to guide the action recognition model to generate a specific length result (i.e., an action video of a specific length), and the expected generation length can be calculated based on the speech duration T voice , the average statistical duration of sign language actions (i.e. the average duration of actions) T avg-gloss , and the time difference control amount (i.e. the current synchronization time difference) C n , see formula 3 for specific calculation.

[0116]

[0117] Among them, K4 is a preset adjustment proportional constant; and the larger the time difference control amount, the shorter the expected generated result is, that is, the smaller the expected generation length is.

[0118] In the embodiments of the present specification, the expected generation length is calculated based on the speech duration, the average statistical duration of the sign language action and the time difference control amount, and the action recognition model can be subsequently guided to generate a sign language action video of appropriate length based on the expected generation length.

[0119] The second method is to generate the duration of the expected action and the text information, and process them by the preset algorithm to determine the target action video, and further include:

[0120] The expected action generation duration is determined according to the current synchronization time difference, the historical synchronization time difference between the historical voice and the historical action video corresponding to the historical voice.

[0121] In practical applications, in addition to the first method of calculating the expected generation length shown in the above embodiment, the expected generation length can also be calculated using the second calculation method, such as based on C1, C2, ..., C n Perform statistical calculations, etc., where C n is the current synchronization time difference, C n The previous synchronization time difference is the historical synchronization time difference; or the time difference control amount (i.e. the current synchronization time difference) is C n The calculation is performed after normalizing to a value between 0 and 1 through the Logistic function, and this specification does not impose any limitation on this.

[0122] In the embodiments of the present specification, the beneficial effects of the expected generation length are the same as those of the above embodiments. The expected generation length is calculated based on the speech duration, the average statistical duration of the sign language action, and the time difference control amount. Subsequently, the action recognition model can be guided to generate a sign language action video of appropriate length based on the expected generation length.

[0123] Then, after determining that the preset algorithm includes an action recognition model and an action editing model according to the above embodiment, the expected action generation duration and text information are processed by the preset algorithm to obtain the target action video in the following specific implementation method:

[0124] The expected action generation duration and the text information are processed by the preset algorithm to determine the target action video, including:

[0125] Inputting the expected action generation duration and the text information into the action recognition model to obtain an updated action text corresponding to the text information;

[0126] Inputting the update action text into the action editing model to obtain an update action video corresponding to the update action text;

[0127] Determining an update synchronization time difference between the current voice and the update action video according to the voice duration and the action duration of the update action video;

[0128] When the update synchronization time difference is less than the preset time threshold, the update action video is determined as the target action video.

[0129] Among them, when the expected action generation duration is input into the action recognition model, the action recognition model controls the length of the updated action video as a controllable length generation model; in practical applications, there are many schemes for controlling the length of the model, for example, in the model training phase, the length is directly used as the model input; the length control can also be achieved by adding a penalty term to the model length loss; for example, keywords are first extracted from the input text based on the length, and then the keywords are used as a common input to control the length of the generated content (updated action video).

[0130] Specifically, the expected action generation duration and text information are input into the action recognition model to obtain the updated action text corresponding to the text information. For example, if the expected action generation duration is 8 seconds, then when the action recognition model generates the updated action text according to the text information, it will try to generate an updated action text that can complete the action display in about 8 seconds based on the expected action generation duration. Then the updated action text is input into the action editing model to obtain the updated action video corresponding to the updated action text; and in order to further ensure the synchronization of the updated action video with the current voice, the updated synchronization time difference between the current voice and the updated action video will be calculated again based on the voice duration of the current voice and the action duration of the updated action video. When the updated synchronization difference is less than the preset time threshold, the updated action video is determined to be time synchronized with the current voice, and the updated action video is determined as the target action video.

[0131] The method for synchronizing speech and action time provided in the embodiments of this specification adopts an algorithm to generate an initial action video (sign language action video) of controllable length, and in the process of generating the sign language action video, the synchronization time difference between the speech and the sign language action video is perceived through the duration of the sign language action video and the current speech duration. When it is judged that the speech and the sign language action are not synchronized according to the synchronization time difference, the duration of the sign language action video can be dynamically controlled through a preset algorithm, so that the duration of the sign language action video finally obtained is the same as or similar to the current speech duration, thereby achieving synchronization between the current speech and the sign language action. The whole process is fully automated without manual intervention, and the user experience is good. Moreover, because the change of the synchronization time difference can be perceived, the occurrence of excessive or insufficient simplification can be minimized, and the original intention of the entire sign language action will not be affected.

[0132] When the current synchronization time difference determined based on the voice duration of the current voice and the action duration of the initial action video is less than the preset time threshold, it can be determined that the time synchronization between the current voice and its corresponding initial action video is small and can be ignored; at this time, considering the continuity of the voice, if there is a synchronization time difference between each sentence of voice and its corresponding initial action video, although each synchronization time difference is small, the accumulation in sequence will also affect the time synchronization between subsequent voices and their corresponding initial action videos; in order to avoid this situation, in the embodiment of this specification, although it is determined that the current synchronization time difference is less than the preset time threshold, the current synchronization time difference of the current voice will still be considered when generating the initial action video corresponding to the next sentence of the current voice. The specific implementation method is as follows:

[0133] After determining the current synchronization time difference between the current voice and the initial action video, the method further includes:

[0134] When the current synchronization time difference is less than the preset time threshold, a target action video corresponding to the next voice is determined according to the current synchronization time difference and the next voice of the current voice.

[0135] Specifically, the specific implementation method of determining the target action video corresponding to the next voice according to the current synchronization time difference and the next voice of the current voice is the same as the implementation method of the target action video corresponding to the current voice in the above embodiment. That is, extract the text information of the next voice of the current voice and determine the voice duration of the next voice; input the current synchronization time difference and the text information of the next voice into the action recognition model to obtain the next action text corresponding to the text information of the next voice; input the next action text into the action editing model to obtain the next initial action video corresponding to the next action text; determine the next synchronization time difference between the next voice and the next initial action video according to the voice duration of the next voice and the action duration of the next initial action video; when the next synchronization time difference is greater than or equal to the preset time threshold, the expected action generation duration and the text information of the next voice are continuously processed through the above-mentioned action recognition model and action editing model to obtain its target action video.

[0136] When there is a previous historical voice for the current voice, and the historical synchronization time difference between the previous historical voice and the historical action video corresponding to the previous historical voice is less than the preset time threshold, when determining the target action video for the current voice, the implementation method of the above embodiment can be referred to, and the target action video for the current voice can be determined by considering the historical synchronization time difference. The specific implementation method is as follows:

[0137] In actual applications, if the current voice is the initial voice, that is, the first sentence of voice, then the initial sign language action video corresponding to the current voice can be directly obtained based on the action recognition model and the action editing model. If the current voice is not the initial voice, that is, the current voice has historical voice, due to the continuity of the voice, the time synchronization between the historical voice and its corresponding sign language action video will also directly affect the time synchronization between the current voice and its corresponding initial sign language action video. At this time, if the current voice has a previous historical voice, in order to ensure the accuracy of the initial sign language action video of the current voice, it is necessary to comprehensively consider the previous historical voice and its corresponding sign language action video to determine the initial sign language action video of the current voice. The specific implementation method is as follows:

[0138] The step of inputting the text information into an action recognition model to obtain an action text corresponding to the text information includes:

[0139] When it is determined that the current voice has a previous historical voice, determining a historical synchronization time difference between the previous historical voice and a historical action video corresponding to the previous historical voice;

[0140] In a case where the historical synchronization time difference is less than the preset time threshold, the text information and the historical synchronization time difference are input into an action recognition model to obtain an action text corresponding to the text information.

[0141] The previous historical voice can be understood as the previous voice of the current voice. For example, the current voice is: Now I am reporting to you a certain news from a certain news channel; then the previous historical voice of the current voice can be: Dear audience friends, good evening. That is, the previous historical voice combined with the current voice is: Dear audience friends, good evening; Now I am reporting to you a certain news from a certain news channel.

[0142] Specifically, when there is a previous historical speech in the current speech, the historical synchronization time difference between the previous historical speech and the historical action video corresponding to the previous historical speech is determined. When it is determined that the historical synchronization time difference is less than a preset time threshold, the text information and the historical synchronization time difference are input into the action recognition model to obtain the action text corresponding to the text information.

[0143] In specific implementation, still taking the action video as a sign language video as an example, according to the preset time threshold, the adjustment of the sign language video corresponding to the current voice is specifically as follows:

[0144] For example, set the preset time threshold to Th; when C n ≥T h When C n Calculate the generated length L n+1, according to L n+1 The sign language video is calculated again through text2gloss and gloss2sign with the current speech, and C is calculated based on the speech duration of the current speech and the sign language duration of the sign language video. n+1 , if C n+1 Still greater than or equal to the preset time threshold Th, the above steps can be repeated; and when C n <T h When the time difference control value C is recorded n , wait for the next round of input of the text2gloss model for the n+1th sentence of speech, and continue to complete the subsequent audio and video synthesis process.

[0145] In practical applications, when the model adjustment is performed multiple times and still cannot achieve the goal, in order to avoid the problem of low efficiency caused by repeated iterations, in the embodiment of this specification, n+1 Greater than or equal to the preset time threshold T h After repeating m times, you can choose to speed up the sign language playback to achieve time synchronization between the current voice and its corresponding sign language video. The specific implementation method is as follows:

[0146] After determining the update synchronization time difference between the current voice and the update action video, the method further includes:

[0147] In a case where the update synchronization time difference is greater than or equal to the preset time threshold, determining the number of times the update action video is generated;

[0148] When the number of generation times is greater than or equal to a preset number threshold, determining the playback speed of the update action video according to the action duration of the update action video and the voice duration of the current voice;

[0149] A target action video is determined according to the play speed and the update action video.

[0150] The preset number threshold can be set according to actual applications, for example, the preset number threshold is set to 5 times or 6 times.

[0151] Take the preset number threshold of 5 times as an example for introduction. Specifically, when the update synchronization time difference is greater than or equal to the preset time threshold, the number of times the update action video is generated is determined. For example, the number of times the update action video is generated this time is the 6th time, then it can be determined that the number of times is greater than or equal to the preset number threshold. Then, according to the action duration of the update action video and the voice duration of the current voice, the playback speed of the update action video is determined. For example, the action duration of the update action video is 10 seconds, and the voice duration of the current voice is 5 seconds, then the playback speed of the update action video can be 2 times the speed. Finally, according to the playback speed and the update action video, the target action video is determined.

[0152] In the embodiments of this specification, an algorithm is first used to simplify the translation of sign language to ensure the time alignment of speech and sign language without affecting the original meaning and action. When algorithm simplification is no longer sufficient to ensure the time alignment of speech and sign language movements, the sign language speed can be adjusted to force the alignment of speech and sign language movements. Each sign language movement has an appropriate playback speed. Forcibly modifying the sign language speed will inevitably affect the expressiveness and understanding. Therefore, in the embodiments of this specification, the sign language speed is adjusted only when multiple iterations of the algorithm cannot meet the time alignment, thereby minimizing the modification of the sign language speed, which can ensure better time alignment and less movement distortion.

[0153] In specific implementation, the method for synchronizing speech and action time provided in the embodiment of this specification is applied to the scene of digital human sign language broadcasting, and the current speech of the speaker is extracted and processed to obtain the action video, so that the digital human can perform action display based on the action video for the hearing-impaired to watch visually, thereby improving the visual viewing experience of the hearing-impaired. The specific implementation method is as follows:

[0154] The extracting text information of the current speech and determining the speech duration of the current speech includes:

[0155] Extracting text information of the current speech of the speaker and determining the speech duration of the current speech;

[0156] Accordingly, the text information is processed by a preset algorithm to obtain an initial action video, including:

[0157] The text information is processed by a preset algorithm to obtain an initial action video of the virtual human to be displayed.

[0158] Among them, the virtual person can be understood as a digital person, that is, a virtual person who can display action videos; when the action video is a sign language action video, the virtual person can display sign language movements for the sign language action video; when the action video is a body movement video, the virtual person can display body movements for the action video, such as dancing.

[0159] In addition, in the embodiments of this specification, not only can the sign language be synchronized with the speed of the speech, but the speed difference can also be sensed on the speech side, so as to adjust the speed of the speech side to match the speed of the sign language to achieve synchronization. The specific implementation method is as follows:

[0160] After determining the current synchronization time difference between the current voice and the initial action video, the method further includes:

[0161] In a case where the current synchronization time difference is greater than or equal to the preset time threshold, determining a time difference level corresponding to the current synchronization time difference;

[0162] When the time difference level is greater than or equal to a preset level threshold, a voice speed adjustment prompt is sent to the speaker.

[0163] The time difference level corresponding to the current synchronization time difference may be set according to actual applications. For example, the larger the current synchronization time difference is, the higher the corresponding time difference level is.

[0164] Specifically, when the current synchronization time difference is greater than or equal to a preset time threshold, the time difference level corresponding to the current synchronization time difference is determined; when it is determined that the time difference is equal to or greater than a preset level threshold (such as level two), a voice speed adjustment prompt is sent to the speaker; for example, the speaker is prompted to adjust the voice speed slower.

[0165] In practical applications, the speaking speed adjustment mainly discretizes the time difference control amount Cn into different time difference levels. When a certain time difference level is reached, a corresponding prompt is given to the speaker, who can judge whether to appropriately reduce the speaking speed to adapt to the sign language speed. When the speaker is also a virtual person, the speech playback speed of the speaker can also be automatically calculated and controlled directly according to the action duration of the initial action video when the time difference level is greater than or equal to the preset level threshold.

[0166] In the embodiments of this specification, through the two-way perception mechanism, on the one hand, the sign language can be coordinated with the voice speed according to the implementation scheme of the above embodiment, and on the other hand, the voice side can be aware of the speed difference, so that the voice side can achieve time synchronization with the speed of the sign language, thereby improving the user experience.

[0167] After obtaining a suitable target action video, the current voice and the target action video can be synthesized into an audio and video to obtain a video to be displayed that can be played and displayed on a terminal.

[0168] The method for time synchronization of speech and action provided in the embodiments of this specification adopts an algorithm to generate an initial action video (sign language action video) of controllable length, and in the process of generating the sign language action video, the synchronization time difference between the speech and the sign language action video is perceived through the duration of the sign language action video and the current speech duration. When it is judged that the speech and the sign language action are not synchronized according to the synchronization time difference, the duration of the sign language action video can be dynamically controlled through a preset algorithm so that the duration of the sign language action video finally obtained is the same as or close to the current speech duration, thereby realizing the synchronization of the current speech and the sign language action. The whole process is fully automated without the need for human intervention, and the user experience is good.

[0169] The following combination Figure 3 Taking the application of the method for voice and action time synchronization provided in this specification in the scene of digital human sign language broadcasting as an example, the method for voice and action time synchronization is further explained. Among them, Figure 3 A processing flow chart of a method for voice and action time synchronization provided by an embodiment of the present specification is shown, which specifically includes the following steps.

[0170] Step 302: Acquire the speaker's voice.

[0171] Step 304: Convert the speech into text in real time through ASR.

[0172] Step 306: Convert the text into sign language text gloss through the text2gloss model.

[0173] Step 308: The sign language text gloss is converted into sign language skeleton movements through the gloss2sign model, and rendered into a digital human sign language video.

[0174] Step 310: Calculate the time difference control amount according to the speech duration of the speech and the video duration of the digital human sign language video.

[0175] Specifically, the specific calculation method of the time difference control amount can refer to the above embodiment, which will not be repeated here.

[0176] Step 312: Determine whether the time difference control amount exceeds a threshold value, if so, execute step 314, if not, execute step 316.

[0177] Step 314: Determine whether the number of iterations exceeds a preset number, if so, execute step 320, if not, execute step 318.

[0178] Step 316: The time difference control amount is combined with the speaker's next speech and input into the text2gloss model.

[0179] Specifically, while executing step 316 , the speech and its corresponding sign language video are synthesized and displayed to the user, that is, step 322 is executed.

[0180] Step 318: Calculate the expected generation length based on the time difference control amount, and input the expected generation length and the speech-converted text into the text2gloss model for iteration.

[0181] Step 320: Adjust the sign language speed according to the speech duration and the video duration of the sign language video.

[0182] Specifically, when the time difference control amount exceeds the threshold and the number of iterations also exceeds the preset number, in order to ensure the time synchronization between speech and sign language, the speed of the sign language video can be adjusted according to the speech duration and the video duration of the sign language video to ensure the time synchronization between the two, that is, execute step 320; and after adjusting the sign language speed according to step 320, the speech and the sign language video with the adjusted speed can be synthesized for audio and video, that is, execute step 322.

[0183] Step 322: Perform audio and video synthesis on the speech and its corresponding sign language video.

[0184] Step 324: Send a speaking speed adjustment prompt to the speaker according to the time difference level corresponding to the time difference control amount.

[0185] Specifically, when the time difference control amount exceeds the threshold and the number of iterations also exceeds the preset number, not only can the sign language speed be adjusted according to the voice duration and the video duration of the sign language video, and the voice and the speed-adjusted sign language video be synthesized; at the same time, the pronunciation speed can also be adjusted from the voice side by sending a speaking speed adjustment prompt to the speaker. Through this two-way perception mechanism, the synchronous display effect of voice and sign language of the digital human's sign language broadcast can be further improved.

[0186] The method for time synchronization of speech and action provided in the embodiments of this specification uses a length-controllable sign language translation model (i.e., a motion recognition model and a motion editing model) and an adaptive length control method, so that speech broadcast and sign language broadcast can be automatically aligned; and this scheme can perform multi-step and multi-level sign language speed adjustment, wherein multi-step means that it can perform instant adjustment according to a threshold value, and can also perform delayed adjustment (i.e., when it is less than the threshold value, no adjustment is currently performed); multi-level means that the model is used first for length-controllable sign language translation, and when the model adjustment cannot achieve the goal, the sign language video playback speed adjustment is used. Through multi-step and multi-level speed adjustment, it can provide a good speech and sign language time speed synchronization effect and playback effect; and improve the viewing experience of hearing-impaired people in the digital human sign language broadcast scenario.

[0187] Corresponding to the above method embodiment, this specification also provides a device embodiment for synchronizing speech and action time. Figure 4 FIG. 1 is a schematic diagram showing a structure of a device for synchronizing speech and motion time provided by an embodiment of the present specification. Figure 4 As shown, the device comprises:

[0188] A first text extraction module 402 is configured to extract text information of the current speech and determine the speech duration of the current speech;

[0189] The first action obtaining module 404 is configured to process the text information through a preset algorithm to obtain an initial action video;

[0190] A first time difference determination module 406 is configured to determine a current synchronization time difference between the current voice and the initial action video according to the voice duration and the action duration of the initial action video;

[0191] The first target action determination module 408 is configured to process the expected action generation duration and the text information through the preset algorithm to determine the target action video when the current synchronization time difference is greater than or equal to the preset time threshold.

[0192] The expected action generation duration is determined according to the current synchronization time difference.

[0193] Optionally, the first action obtaining module 404 is further configured to:

[0194] Inputting the text information into an action recognition model to obtain an action text corresponding to the text information;

[0195] The action text is input into an action editing model to obtain an initial action video corresponding to the action text.

[0196] Optionally, the first action obtaining module 404 is further configured to:

[0197] When it is determined that the current voice has a previous historical voice, determining a historical synchronization time difference between the previous historical voice and a historical action video corresponding to the previous historical voice;

[0198] In a case where the historical synchronization time difference is less than the preset time threshold, the text information and the historical synchronization time difference are input into an action recognition model to obtain an action text corresponding to the text information.

[0199] Optionally, the first time difference determining module 406 is further configured to:

[0200] Determining a current time difference between the current voice and the initial action video according to the voice duration and the action duration of the initial action video;

[0201] Determine the current synchronization time difference between the current voice and the initial action video according to the current time difference and the historical time difference of the historical voice,

[0202] The historical time difference is determined according to the voice duration of the historical voice and the action duration of the historical action video corresponding to the historical voice.

[0203] Optionally, the first time difference determining module 406 is further configured to:

[0204] Determine a time difference change value according to the current time difference and the historical time difference of the previous historical speech;

[0205] The current synchronization time difference between the current voice and the initial action video is determined according to the current time difference, the accumulated historical time difference of the historical voice, and the time difference change value.

[0206] Optionally, the device further comprises:

[0207] The first expected generation duration determination module is configured to:

[0208] Determine the expected action generation duration according to the voice duration, the average action duration, and the current synchronization time difference,

[0209] The average action duration is determined by the action duration of the historical action video and the action duration of the initial action video.

[0210] Optionally, the device further comprises:

[0211] The second expected generation time determination module is configured to

[0212] The expected action generation duration is determined according to the current synchronization time difference, the historical synchronization time difference between the historical voice and the historical action video corresponding to the historical voice.

[0213] Optionally, the first target action determination module 408 is further configured to:

[0214] Inputting the expected action generation duration and the text information into the action recognition model to obtain an updated action text corresponding to the text information;

[0215] Inputting the update action text into the action editing model to obtain an update action video corresponding to the update action text;

[0216] Determining an update synchronization time difference between the current voice and the update action video according to the voice duration and the action duration of the update action video;

[0217] When the update synchronization time difference is less than the preset time threshold, the update action video is determined as the target action video.

[0218] Optionally, the device further comprises:

[0219] The first action generation module is configured to:

[0220] When the current synchronization time difference is less than the preset time threshold, a target action video corresponding to the next voice is determined according to the current synchronization time difference and the next voice of the current voice.

[0221] Optionally, the device further comprises:

[0222] The second action generation module is configured to:

[0223] In the case where the update synchronization time difference is greater than or equal to the preset time threshold, determining the number of times the update action video is generated;

[0224] When the number of generation times is greater than or equal to a preset number threshold, determining the playback speed of the update action video according to the action duration of the update action video and the voice duration of the current voice;

[0225] A target action video is determined according to the playback speed and the update action video.

[0226] Optionally, the first text extraction module 402 is further configured to:

[0227] Extracting text information of the current speech of the speaker and determining the speech duration of the current speech;

[0228] Accordingly, the first action obtaining module 404 is further configured to:

[0229] The text information is processed by a preset algorithm to obtain an initial action video of the virtual human to be displayed.

[0230] Optionally, the device further comprises:

[0231] The speech speed adjustment module is configured as follows:

[0232] In a case where the current synchronization time difference is greater than or equal to the preset time threshold, determining a time difference level corresponding to the current synchronization time difference;

[0233] When the time difference level is greater than or equal to a preset level threshold, a voice speed adjustment prompt is sent to the speaker.

[0234] The method for time synchronization of speech and action provided in the embodiments of this specification adopts an algorithm to generate an initial action video (sign language action video) of controllable length, and in the process of generating the sign language action video, the synchronization time difference between the speech and the sign language action video is perceived through the duration of the sign language action video and the current speech duration. When it is judged that the speech and the sign language action are not synchronized according to the synchronization time difference, the duration of the sign language action video can be dynamically controlled through a preset algorithm so that the duration of the sign language action video finally obtained is the same as or close to the current speech duration, thereby realizing the synchronization of the current speech and the sign language action. The whole process is fully automated without the need for human intervention, and the user experience is good.

[0235] The above is a schematic scheme of a device for voice and action time synchronization of this embodiment. It should be noted that the technical scheme of the device for voice and action time synchronization and the technical scheme of the method for voice and action time synchronization described above belong to the same concept, and the details of the technical scheme of the device for voice and action time synchronization that are not described in detail can all be referred to the description of the technical scheme of the method for voice and action time synchronization described above.

[0236] See also Figure 5 , Figure 5 A method flow chart of another method for voice and action time synchronization provided by an embodiment of the present specification is shown, which specifically includes the following steps.

[0237] Step 502: extracting text information of the current speech of the speaker, and determining the speech duration of the current speech.

[0238] Step 504: Process the text information through a preset algorithm to obtain an initial action video of the virtual human to be displayed.

[0239] Step 506: Determine the current synchronization time difference between the current voice and the initial action video according to the voice duration and the action duration of the initial action video.

[0240] Step 508: When the current synchronization time difference is greater than or equal to a preset time threshold, the expected action generation duration and the text information are processed through the preset algorithm to determine the target action video to be displayed by the virtual human.

[0241] The expected action generation duration is determined according to the current synchronization time difference.

[0242] The method for time synchronization of speech and action provided in the embodiments of this specification adopts an algorithm to generate an initial action video (sign language action video) of controllable length, and in the process of generating the sign language action video, the synchronization time difference between the speech and the sign language action video is perceived through the duration of the sign language action video and the current speech duration. When it is judged that the speech and the sign language action are not synchronized according to the synchronization time difference, the duration of the sign language action video can be dynamically controlled through a preset algorithm so that the duration of the sign language action video finally obtained is the same as or close to the current speech duration, thereby realizing the synchronization of the current speech and the sign language action. The whole process is fully automated without the need for human intervention, and the user experience is good.

[0243] The above is a schematic scheme of another method for voice and action time synchronization of this embodiment. It should be noted that the technical scheme of the other method for voice and action time synchronization belongs to the same concept as the technical scheme of the above method for voice and action time synchronization. For details not described in detail in the technical scheme of the other method for voice and action time synchronization, please refer to the description of the technical scheme of the above method for voice and action time synchronization.

[0244] Corresponding to the above-mentioned another method embodiment for synchronizing speech and action time, the present specification also provides another device embodiment for synchronizing speech and action time, the device comprising:

[0245] A second text extraction module is configured to extract text information of the current speech of the speaker and determine the speech duration of the current speech;

[0246] A second action acquisition module is configured to process the text information through a preset algorithm to obtain an initial action video of the virtual person to be displayed;

[0247] A second time difference determination module is configured to determine a current synchronization time difference between the current voice and the initial action video according to the voice duration and the action duration of the initial action video;

[0248] The second target action determination module is configured to process the expected action generation duration and the text information through the preset algorithm to determine the target action video to be displayed by the virtual person when the current synchronization time difference is greater than or equal to the preset time threshold,

[0249] The expected action generation duration is determined according to the current synchronization time difference.

[0250] The above is a schematic scheme of another device for voice and action time synchronization of this embodiment. It should be noted that the technical scheme of the another device for voice and action time synchronization and the technical scheme of the above method for voice and action time synchronization belong to the same concept, and the details of the technical scheme of the another device for voice and action time synchronization that are not described in detail can all be referred to the description of the technical scheme of the above method for voice and action time synchronization.

[0251] Figure 6 The block diagram of a computing device 600 according to an embodiment of the present specification is shown. The components of the computing device 600 include but are not limited to a memory 610 and a processor 620. The processor 620 is connected to the memory 610 via a bus 630, and the database 650 is used to store data.

[0252] The computing device 600 also includes an access device 640 that enables the computing device 600 to communicate via one or more networks 660. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 640 may include one or more of any type of network interface (e.g., a network interface card (NIC)) whether wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a World Wide Interoperability for Microwave Access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, a near field communication (NFC) interface, and the like.

[0253] In one embodiment of the present specification, the above components of the computing device 600 and Figure 6 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Figure 6 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.

[0254] The computing device 600 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or PC. The computing device 600 may also be a mobile or stationary server.

[0255] The processor 620 is used to execute the following computer executable instructions, which, when executed by the processor, implement the steps of the above-mentioned method for time synchronization of voice and action.

[0256] The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the above-mentioned method for synchronizing speech and action time are of the same concept, and the details not described in detail in the technical scheme of the computing device can be found in the description of the technical scheme of the above-mentioned method for synchronizing speech and action time.

[0257] An embodiment of the present specification further provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the steps of the above-mentioned method for time synchronization of speech and action.

[0258] The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the above-mentioned method for voice and action time synchronization belong to the same concept, and the details not described in detail in the technical scheme of the storage medium can be referred to the description of the technical scheme of the above-mentioned method for voice and action time synchronization.

[0259] An embodiment of the present specification further provides a computer program, wherein when the computer program is executed in a computer, the computer is caused to execute the steps of the above-mentioned method for synchronizing speech and motion time.

[0260] The above is a schematic scheme of a computer program of this embodiment. It should be noted that the technical scheme of the computer program and the technical scheme of the above-mentioned method for voice and action time synchronization belong to the same concept, and the details not described in detail in the technical scheme of the computer program can be referred to the description of the technical scheme of the above-mentioned method for voice and action time synchronization.

[0261] An embodiment of the present specification further provides an augmented reality (AR), virtual reality (VR), mixed reality (MR), or extended reality (XR) device, including:

[0262] Memory and processor;

[0263] The memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the above-mentioned method for time synchronization of voice and action are implemented.

[0264] The above is a schematic scheme of an augmented reality AR, virtual reality VR, mixed reality MR or extended reality XR device of this embodiment. It should be noted that the technical scheme of the augmented reality AR, virtual reality VR, mixed reality MR or extended reality XR device and the technical scheme of the above-mentioned method for voice and action time synchronization belong to the same concept. For details not described in detail in the technical scheme of the augmented reality AR, virtual reality VR, mixed reality MR or extended reality XR device, please refer to the description of the technical scheme of the above-mentioned method for voice and action time synchronization.

[0265] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0266] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0267] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of this specification are not limited by the order of the actions described, because according to the embodiments of this specification, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the embodiments of this specification.

[0268] 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.

[0269] The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to only the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the embodiments of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of this specification, so that technicians in the relevant technical field can well understand and use this specification. This specification is only limited by the claims and their full scope and equivalents.

Claims

1. A method for time synchronization of speech and action, comprising: Extracting text information of the current speech and determining the speech duration of the current speech; Processing the text information through a preset algorithm to obtain an initial action video; Determining a current synchronization time difference between the current voice and the initial action video according to the voice duration and the action duration of the initial action video; When the current synchronization time difference is greater than or equal to the preset time threshold, the expected action generation duration and the text information are processed by the preset algorithm to determine the target action video. Wherein, the expected action generation duration is determined according to the current synchronization time difference, and the expected action generation duration is determined according to the current synchronization time difference, including: Determine the expected action generation duration according to the voice duration, the average action duration, and the current synchronization time difference, wherein the average action duration is determined by the action duration of the historical action video and the action duration of the initial action video; or The expected action generation duration is determined according to the current synchronization time difference, the historical synchronization time difference between the historical voice and the historical action video corresponding to the historical voice.

2. The method for time synchronization of speech and action according to claim 1, wherein the processing of the text information by a preset algorithm to obtain an initial action video corresponding to the text information comprises: Inputting the text information into an action recognition model to obtain an action text corresponding to the text information; The action text is input into an action editing model to obtain an initial action video corresponding to the action text.

3. The method for time synchronization of speech and action according to claim 2, wherein the step of inputting the text information into an action recognition model to obtain an action text corresponding to the text information comprises: When it is determined that the current voice has a previous historical voice, determining a historical synchronization time difference between the previous historical voice and a historical action video corresponding to the previous historical voice; In a case where the historical synchronization time difference is less than the preset time threshold, the text information and the historical synchronization time difference are input into an action recognition model to obtain an action text corresponding to the text information.

4. The method for synchronizing speech and motion time according to claim 1 or 3, wherein determining the current synchronization time difference between the current speech and the initial motion video according to the speech duration and the motion duration of the initial motion video comprises: Determining a current time difference between the current voice and the initial action video according to the voice duration and the action duration of the initial action video; Determine the current synchronization time difference between the current voice and the initial action video according to the current time difference and the historical time difference of the historical voice, The historical time difference is determined according to the voice duration of the historical voice and the action duration of the historical action video corresponding to the historical voice.

5. The method for time synchronization of speech and action according to claim 4, wherein the step of determining the current synchronization time difference between the current speech and the initial action video according to the current time difference and the historical time difference of the historical speech comprises: Determine a time difference change value according to the current time difference and the historical time difference of the previous historical speech; The current synchronization time difference between the current voice and the initial action video is determined according to the current time difference, the accumulated historical time difference of the historical voice, and the time difference change value.

6. The method for synchronizing speech and action time according to claim 2, wherein the expected action generation duration and the text information are processed by the preset algorithm to determine the target action video, comprising: Inputting the expected action generation duration and the text information into the action recognition model to obtain an updated action text corresponding to the text information; Inputting the update action text into the action editing model to obtain an update action video corresponding to the update action text; Determining an update synchronization time difference between the current voice and the update action video according to the voice duration and the action duration of the update action video; When the update synchronization time difference is less than the preset time threshold, the update action video is determined as the target action video.

7. The method for time synchronization of speech and action according to claim 1, after determining the current synchronization time difference between the current speech and the initial action video, further comprising: When the current synchronization time difference is less than the preset time threshold, a target action video corresponding to the next voice is determined according to the current synchronization time difference and the next voice of the current voice.

8. The method for voice and action time synchronization according to claim 6, after determining the update synchronization time difference between the current voice and the updated action video, further comprising: In the case where the update synchronization time difference is greater than or equal to the preset time threshold, determining the number of times the update action video is generated; When the number of generation times is greater than or equal to a preset number threshold, determining the playback speed of the update action video according to the action duration of the update action video and the voice duration of the current voice; A target action video is determined according to the playback speed and the update action video.

9. The method for synchronizing speech and motion time according to claim 1, wherein extracting text information of the current speech and determining the speech duration of the current speech comprises: Extracting text information of the current speech of the speaker and determining the speech duration of the current speech; Accordingly, the text information is processed by a preset algorithm to obtain an initial action video, including: The text information is processed by a preset algorithm to obtain an initial action video of the virtual human to be displayed.

10. The method for time synchronization of speech and action according to claim 9, after determining the current synchronization time difference between the current speech and the initial action video, further comprising: In a case where the current synchronization time difference is greater than or equal to the preset time threshold, determining a time difference level corresponding to the current synchronization time difference; When the time difference level is greater than or equal to a preset level threshold, a voice speed adjustment prompt is sent to the speaker.

11. A method for time synchronization of speech and motion, comprising: Extracting text information of the current speech of the speaker and determining the speech duration of the current speech; Processing the text information through a preset algorithm to obtain an initial action video of the virtual human to be displayed; Determining a current synchronization time difference between the current voice and the initial action video according to the voice duration and the action duration of the initial action video; When the current synchronization time difference is greater than or equal to the preset time threshold, the expected action generation duration and the text information are processed by the preset algorithm to determine the target action video to be displayed by the virtual person, Wherein, the expected action generation duration is determined according to the current synchronization time difference, and the expected action generation duration is determined according to the current synchronization time difference, including: Determine the expected action generation duration according to the voice duration, the average action duration, and the current synchronization time difference, wherein the average action duration is determined by the action duration of the historical action video and the action duration of the initial action video; or The expected action generation duration is determined according to the current synchronization time difference, the historical synchronization time difference between the historical voice and the historical action video corresponding to the historical voice.

12. A device for synchronizing speech and motion in time, applied to augmented reality (AR), virtual reality (VR), mixed reality (MR) or extended reality (XR), comprising: Memory and processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions. When the computer-executable instructions are executed by the processor, the steps of the method for voice and action time synchronization described in any one of claims 1 to 11 are implemented.