Video subtitle translation and editing method, device, electronic device and storage medium
Helping users modify video subtitles by generating input prompt text solves the problem of inaccurate modification of translation subtitles in the existing technology, improves the accuracy and efficiency of translation and editing, and is suitable for translation and editing scenarios for non-native-native users.
Patent Information
- Application Number
- CN202010700313.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-20
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2040-08-27
AI Technical Summary
In the existing technology, it is difficult for users to ensure accuracy when modifying translated subtitles, especially when the language to be edited is not a language commonly used by the user, resulting in inaccurate modification results, and errors in machine translation results are difficult to correct.
Provides a video subtitle translation and editing method that performs speech recognition and text translation by obtaining the speech in the source video, generates a translation content display page, and when receiving a translation editing instruction, generates an input prompt text that matches the translation to be edited, helping Users make modifications to improve editing accuracy and efficiency.
It reduces the language ability required to modify the translation text and improves the accuracy and efficiency of translation and editing. Users can quickly update the translation text according to the input prompt text and shorten editing time.
Smart Images

Figure CN111898388B
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of translation and editing, and in particular to a method, device, electronic device and storage medium for translating and editing video subtitles. Background Art
[0002] With the development of the Internet, more and more viewers choose to watch online videos. Online videos include not only domestic videos, but also foreign videos. Due to language barriers, viewers' viewing experience is reduced when watching foreign videos.
[0003] Currently, you can obtain the voice in the video, perform speech recognition on the voice, generate text content, and finally translate the text content into a specified language, obtain the translated text content, and add it to the video as video subtitles. Users can play the video with added video subtitles and obtain the translated text of the non-native voice in real time while watching.
[0004] Usually, the translated text content is the result of machine translation. If the machine translation result is wrong, and because the machine translation result is a one-time translation result, the translation result can only be modified manually. In addition, if the language of the translation to be edited is not the user's common language, it is difficult to ensure the correctness of the user's modification result. Summary of the invention
[0005] The embodiments of the present disclosure provide a video subtitle translation and editing method, device, electronic device and storage medium, which can improve the editing efficiency and accuracy of video speech translation.
[0006] In a first aspect, an embodiment of the present disclosure provides a video subtitle translation and editing method, comprising:
[0007] Acquire a source video, and generate a translation content display page according to the source video, wherein the translation content display page includes at least one time range and translation texts matching each time range;
[0008] When receiving the translation editing instruction, obtaining the translation to be edited in the target translation text matching the translation editing instruction;
[0009] According to the translation to be edited, generating and displaying an input prompt text, wherein the input prompt text is used to instruct the user to update the translation to be edited according to the input prompt text;
[0010] The text input by the user in response to the input prompt text is obtained, and the target translation text is updated.
[0011] In a second aspect, the present disclosure also provides a video subtitle translation and editing device, including:
[0012] A translation content display page generation module, used to obtain a source video and generate a translation content display page according to the source video, wherein the translation content display page includes at least one time range and a translation text matching each time range;
[0013] A translation to be edited obtaining module, used for obtaining the translation to be edited from the target translation text matching the translation editing instruction when receiving the translation editing instruction;
[0014] An input prompt text generation module, used to generate and display an input prompt text according to the translation to be edited, wherein the input prompt text is used to instruct the user to update the translation to be edited according to the input prompt text;
[0015] The translation text editing module is used to obtain the text input by the user in response to the input prompt text and update the target translation text.
[0016] In a third aspect, an embodiment of the present disclosure further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor; when the processor executes the program, a video subtitle translation and editing method as described in any one of the embodiments of the present disclosure is implemented.
[0017] In a fourth aspect, the embodiments of the present disclosure further provide a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the video subtitle translation and editing method as described in any one of the embodiments of the present disclosure is implemented.
[0018] The disclosed embodiment obtains a translated text by performing speech recognition and text translation on the speech in the source video, and displays the translated text through a translation content display page at the same time. When a translation editing instruction is received, the translated text to be edited that matches the translation editing instruction is obtained, and an input prompt text matching the translated text to be edited is generated and displayed to the user to help the user modify the translated text. This solves the problem of inaccurate modification results of the translated subtitles by the user in the prior art, can provide modifiable results, reduce the language ability required to modify the translated text, thereby reducing the difficulty of translation editing, and at the same time, improves the accuracy of translation editing. At the same time, the user can update the translated text according to the input prompt text, shortens the editing time of the translated text, and improves the efficiency of translation editing. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 is a flow chart of a video subtitle translation and editing method in an embodiment of the present disclosure;
[0020] Figure 2 is a schematic diagram of a translation content display page in an embodiment of the present disclosure;
[0021] Figure 3is a schematic diagram of inputting a prompt text in an embodiment of the present disclosure;
[0022] Figure 4 is a schematic diagram of inputting a prompt text in an embodiment of the present disclosure;
[0023] Figure 5 is a schematic diagram of a translation content display page in an embodiment of the present disclosure;
[0024] Figure 6 is a schematic diagram of a dynamic prompt text in an embodiment of the present disclosure;
[0025] Figure 7 is a flow chart of a video subtitle translation and editing method in an embodiment of the present disclosure;
[0026] Figure 8 is a flow chart of a video subtitle translation and editing method in an embodiment of the present disclosure;
[0027] Fig. 9 is a flow chart of a video subtitle translation and editing method in an embodiment of the present disclosure;
[0028] Fig.10 is a schematic diagram of a translation content display page including an original text unit in an embodiment of the present disclosure;
[0029] Fig.11 is a schematic diagram of a translation content display page including a video playback area in an embodiment of the present disclosure;
[0030] Fig.12 is a schematic diagram of a translation content display page including dynamic prompt text in an embodiment of the present disclosure;
[0031] Fig.13 is a schematic diagram of an application scenario to which the embodiments of the present disclosure are applicable;
[0032] Fig.14 is a schematic diagram of an original text unit, a translation text and a dynamic prompt text in an embodiment of the present disclosure;
[0033] Fig.15 is a schematic diagram of a translated text when a translation follow close instruction is received in an embodiment of the present disclosure;
[0034] Fig.16 is a schematic diagram of a translation text when a translation follow switch instruction is received in an embodiment of the present disclosure;
[0035] Fig.17 It is a structural schematic diagram of a video subtitle translation and editing device in an embodiment of the present disclosure;
[0036] Fig.18It is a structural schematic diagram of an electronic device in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0037] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0038] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0039] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0040] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0041] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0042] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0043] Example
[0044] Figure 1 The flowchart of a video subtitle translation and editing method in an embodiment of the present disclosure is applicable to the case of editing the translated subtitles of a video. The method can be executed by a video subtitle translation and editing device, which can be implemented in software and / or hardware. The device can be configured in an electronic device, specifically in an electronic device, which can be a terminal device, and the terminal device can include a mobile phone, a vehicle-mounted terminal or a laptop computer, etc. Figure 1 As shown, the method specifically comprises the following steps:
[0045] S110, obtaining a source video, and generating a translation content display page according to the source video, wherein the translation content display page includes at least one time range and translation texts matching each time range.
[0046] The source video is used as a video to be subtitled. The source video may refer to a video uploaded by a user. The source video may include speech in at least one language. For example, the language of the speech may be Chinese: I love to sing, or may include English and Chinese: I love to sing, wherein the speech in the source video includes the English text I love to and the Chinese text singing. Optionally, the source video includes speech in one language.
[0047] Perform speech recognition on the speech in the source video to form the original text, convert the original text into a text in a specified language, and determine it as the translated text. Among them, speech recognition can be implemented by an automatic speech recognition method, specifically: establish a speech database and train an acoustic model; establish a text database and train a language model; obtain the speech to be recognized, and perform speech feature extraction and encoding to form a feature vector; according to the pre-trained acoustic model and the pre-trained language model, decode and search the feature vector to generate the recognized text. In addition, the speech recognition methods adopted by those skilled in the art can all be applied to this embodiment, and the embodiments of the present disclosure do not make specific restrictions on this.
[0048] The time range may refer to a time period formed by two time points in the source video and the duration between the two time points. The corresponding voices at different time points in the source video are different, the original texts generated by the corresponding voice recognition are different, and the translated texts formed by the translation are different. At the same time, the video duration of the source video is composed of multiple time ranges, so the translation data can be divided into multiple translated texts according to the time range, and each translated text matches a time range.
[0049] Wherein, the translated text may be a text in a specified language, and the semantics of the translated text is the same as the semantics of the original text corresponding to the source video. The specified language may be specified by a user. The specified language is different from the language of the original text. The original text may be divided into a plurality of original text units according to the time range, and each original text unit is converted into a translated text in a specified language, so that the time range, the original text unit and the translated text correspond one to one. Specifically, a machine translation algorithm may be used to realize the conversion of the original text into a translated text in a specified language, for example, a machine translation method based on analysis and conversion, a machine translation method based on an intermediate language, a machine translation method based on statistics, and a machine translation method based on an example, etc. Wherein, the translated text may include a text in at least one language. Optionally, the number of languages of the original text is one, and the number of languages of the translated text is one, and at the same time, the language of the original text is different from the language of the translated text.
[0050] The translated content display page is used to display the original text recognized by the source video translated into the specified language. Figure 2 As shown, the time range is on the left side of the translated text, and the time range matches the translated text. Optionally, the translated content display page is also used to display the original text, and the original text is compared with the translated text for easy browsing by users. Users can display and browse the translated content display page through a client or a browser, that is, display and browse the original text and the translated text. The translated content display page can display and edit the original text and the translated text online, and the translated content display page can be saved as a file in real time and stored in a specified storage location in the electronic device, and can also be saved in real time in a specified network database. Among them, the online real-time saving operation can save the editing results of the real-time editing operation in real time in a specified network database. The server associated with the translated content display page performs voice acquisition, voice recognition and machine translation on the uploaded source video, and generates page data, and feeds back the generated page data to the electronic device, and the electronic device generates a translated content display page according to the page data. Alternatively, the electronic device directly obtains the source video specified by the user for voice acquisition, voice recognition and machine translation, etc., and generates page data, and generates a translated content display page according to the page data.
[0051] It should be noted that in the translation content display page, the display content, display position and display style of the translated text and the original text, as well as the layout, page content and page style of the translated content display page, can be set as needed, and the embodiments of the present disclosure do not impose specific restrictions on this. Exemplarily, the specified language is English, and the translation content display page can include the original text and the translated text, and the display position of the translated text is below the display position of the original text.
[0052] S120, when receiving the translation and editing instruction, obtaining the translation to be edited from the target translation text matching the translation and editing instruction.
[0053] The translation editing instruction is used to specify the translation text to be edited, and to operate the target translation text. Among them, the target translation text can be any translation text, and the operation can include text editing operations such as adding, modifying and deleting. The translation editing instruction can refer to the operation instruction for the target translation text entered by the user in the translation content display page. The translation to be edited can be the text in the target translation text. When the number of translation texts is multiple, the translation text hit by the translation editing instruction is used as the target translation text; when the number of translation texts is one, the translation text is the target translation text.
[0054] Among them, the translation editing instruction can be triggered when the user clicks the edit button in the translation content display page, or when the user clicks on any area where the translated text is located in the translation content display page, or when the user enters a specific touch screen gesture (for example, it can be long press and swipe left or long press and swipe right to select a text range). In addition, the translation editing instruction triggering methods adopted by technical personnel in this field can all be applied to this embodiment, and the embodiments of the present disclosure do not make specific limitations on this.
[0055] Exemplarily, the translation to be edited is the text to be deleted in the target translation text. For example, the user deletes the word "like" in the target translation text "I like singing", and the translation to be edited is "like". Alternatively, the translation to be edited is the text that matches the input text in the target translation text. For example, the user inputs "love" in the middle of the target translation text "I like singing", that is, the target translation text becomes: "I love like singing". Although "like" is not deleted at this time, the "love" input by the user is different from the "like" in the original position, so the translation to be edited is "like".
[0056] S130: Generate and display an input prompt text according to the translation to be edited, wherein the input prompt text is used to instruct the user to update the translation to be edited according to the input prompt text.
[0057] The input prompt text is used to display input text, the semantics of which are the same as the semantics of the translation to be edited, and the content of the input prompt text is different from the content of the translation to be edited. Among them, the input prompt text is used to update the target voice editing text, for example, the input prompt text can replace the translation to be edited. Specifically, the input prompt text can be combined with the text of the target translation text other than the translation to be edited to generate a modified target translation text, wherein the semantics of the modified target translation text are the same as the semantics of the target translation text before modification and the semantics of the original text. The input prompt text can assist the user in modifying the voice editing text. Exemplarily, the user needs to modify a word in the target translation text, which is the translation to be edited, and the input prompt text is an approximate word or synonym of the word.
[0058] When a user modifies a voice-edited text, the text inputted autonomously may contain grammatical errors and / or spelling errors. By inputting a prompt text, the correct text that is different from the translation to be edited but has the same semantics can be provided to the user, helping the user to make modifications and improving the editing accuracy of the translation text.
[0059] Optionally, displaying the input prompt text includes: generating a prompt following area at a position associated with the translation editing instruction, and displaying the input prompt text in the prompt following area, wherein the translation to be edited is located in the middle of the target translation text; and displaying the input prompt text in the target translation text, wherein the text style of the input prompt text is different from that of the target translation text, and the translation to be edited is located at the end of the target translation text.
[0060] The translation to be edited is located in the middle position, indicating that the user needs to edit the text in the middle position of the target translation text. Among them, the middle position may refer to the middle position of the paragraph including the translation to be edited, or may refer to the middle position of the sentence including the translation to be edited. The input prompt text may be displayed in the form of an intermediate pop-up window insertion display to avoid affecting the position of other unedited texts in the target translation text and causing an increase in the amount of data to be edited, which may easily lead to errors. For example, a prompt following area is generated near the position to be input of the text, and the input prompt text is displayed in the prompt following area. The prompt following area is used to display the input prompt text, and the prompt following area may refer to an area associated with the position to be input. When displayed, the prompt following area may cover other texts. In fact, when editing text in a document, an input identification image (such as a cursor) will be generated in the document at the position to be input of the text, and the user can determine the position of the text to be input based on the input identification image. Exemplarily, the distance between the prompt following area and the input identification image is a set distance. For example, in a specific example, the prompt following area is located 1 mm to the right of the input identification image, as shown in FIG. Figure 3As shown, the input identification image is a cursor, and there is a prompt following area on the right side of the cursor. The input prompt text in the prompt following area is am not.
[0061] The text style is used to identify and distinguish text, specifically to distinguish the displayed input prompt text from the translated text. The text style may include at least one of the following: font, font size, position, color, background, bold, italic, underline, superscript, subscript, and text effects, etc.
[0062] The translation to be edited is located at the end position, indicating that the user needs to edit the text at the end position of the target translation text. Among them, the end position may refer to the end position of the paragraph including the translation to be edited, or may refer to the end position of the sentence including the translation to be edited. Since there is no other text after the translation to be edited, it will not affect the position of other unedited texts, and the input prompt text can be directly added and displayed at the end of the paragraph or sentence. Usually, in order to highlight the input prompt text, the style of the input prompt text can be configured to be different from the style of the target translation text. Exemplarily, the font of the target translation text is black, and the font of the input prompt text is configured to be gray. In a specific example, the target translation text is: I have no exercise talent; the translation to be edited is: have no exercise talent; the user deletes the translation to be edited, and the input prompt text corresponding to the translation to be edited is: have no exercise talent. Before the user makes any changes (that is, does not add characters different from the translation to be edited), the input prompt text is the same as the translation to be edited. Correspondingly, after deletion, if the user enters am, the input prompt text corresponding to the translation to be edited is: not athletic. Figure 4 As shown, the text "I" before the cursor is the unedited target translation text, and the text after the cursor is the input hint text: not athletic.
[0063] In fact, no matter whether the translation to be edited is located in the middle of the text or at the end of the text, the input hint text is displayed nearby, so that the user can quickly browse to the input hint text.
[0064] When editing the text in the document, a prompt following area is generated and the input prompt text is inserted and displayed. When editing the text at the end of the document, the input prompt text is directly added and displayed at the end of the document. The input prompt text is highlighted so that the user can quickly distinguish the input prompt text. At the same time, it is displayed near the input editing position so that the user can quickly browse to the input prompt text, thereby improving the real-time performance of displaying the translation prompt text, thereby editing the translated text according to the input prompt text and improving the editing efficiency of the translated text.
[0065] S140, obtaining the text input by the user in response to the input prompt text, and updating the target translation text.
[0066] The text entered by the user for the input prompt text is used to replace the translation to be edited in the target translation text to form the edited text. The text can be the same as the input prompt text or different from the input prompt text. For example, if the user thinks that the input prompt text is incorrect or is not the translation result expected by the user, the user can enter a text different from the input prompt text. At this time, the user can directly enter the characters and determine the input characters as the input text. For another example, if the user thinks that the input prompt text is correct, the user can enter a text different from the input prompt text. Among them, the user can enter the same characters according to the content of the input prompt text, and determine the input characters as the input text; or the user can enter a trigger instruction to determine the input prompt text as the input text, for example, click the area where the input prompt text is located, and use the input prompt text in the area as the text entered by the user; or press a preset button (such as the Tab key) to determine the input prompt text as the input text.
[0067] It should be noted that the input prompt text is used to prompt the user with a variety of translation results to reduce the user's editing workload. In fact, whether the target translation text is updated and the specific content after the update are determined by the operation input by the user.
[0068] Optionally, before receiving the translation editing instruction, it also includes: when receiving the prompt display trigger instruction, generating a dynamic prompt text, and the dynamic prompt text is the same as the target translation text; while displaying the input prompt text, it also includes: in the dynamic prompt text, replacing the text matching the translation to be edited with the input prompt text, and the text style of the input prompt text is different from the text style of the text in the dynamic prompt text.
[0069] The prompt display trigger instruction is used to generate and display dynamic prompt text. Among them, the prompt display trigger instruction can be triggered when the user clicks the modify display button in the translation content display page, or when the user clicks the target translation text area in the translation content display page, or when the user inputs a specific touch screen gesture (for example, it can be swiping to the target translation text area). In addition, the prompt display trigger instruction triggering method adopted by those skilled in the art can be applied to this embodiment, and the embodiment of the present disclosure does not make specific restrictions on this.
[0070] The dynamic prompt text is used to display the editing effect of the target translation text after the translation to be edited is replaced by the input prompt text. The dynamic prompt text actually shows the target translation text after the input prompt text is edited as the editing content. When no editing instructions are given, the dynamic prompt text is the same as the target translation text, specifically, the semantics and language of the two are the same.
[0071] Among them, the positional relationship between the dynamic prompt text and the target translation text can be set as needed. For example, the dynamic prompt text can be placed below the range text. In addition, the display methods of the dynamic prompt text adopted by those skilled in the art can all be applied to this embodiment, and the embodiments of the present disclosure do not make specific limitations on this.
[0072] In a specific example, Figure 5 As shown, the translation content display page includes the translated text and the dynamic prompt text, wherein the translated text is located above the dynamic prompt text.
[0073] When the input prompt text is displayed, the editing effect of the input prompt text applied to the target translation text can be displayed in the dynamic prompt text. Specifically, in the target translation text, the text before and / or after the translation to be edited is kept unchanged, and the input prompt text is filled into the position of the translation to be edited, and the text in the input prompt text and the target translation text remains unchanged to generate the updated dynamic prompt text. Specifically, it can be as follows Figure 6 As shown, the time range 101 is formed from the starting time point 0:00:8 to the ending time point 0:00:12, the text in the translation area 102 is the target translation text, the text in the dynamic prompt text area 103 is the dynamic prompt text, and the text in the prompt follow area 104 is the input prompt text. The updated target translation text formed by replacing the translation to be edited (deleted and not shown in the translation area 102) with the input prompt text is the text in the dynamic prompt text area 103. In fact, the translation to be edited is the deleted text, and the updated target translation text formed by replacing the translation to be edited with the input prompt text can be the updated target translation text formed by adding the input prompt text to the existing target translation text.
[0074] Usually, in order to highlight the input prompt text, in the dynamic prompt text, the style of the input prompt text is configured to be different from the style of the original dynamic prompt text. For example, the text background fill color of the original dynamic prompt text is none, and the text background fill color of the input prompt text is blue. In addition, other different styles can be set as needed, and the embodiments of the present disclosure do not make specific limitations on this.
[0075] By generating dynamic prompt text and displaying it, while displaying the input prompt text, the editing effect after modifying the target translation text according to the input prompt text is displayed in the dynamic prompt text, so that the user can intuitively and quickly obtain the predicted editing effect of editing according to the input prompt text, improve the real-time performance of the translation editing display, so that the user can quickly edit the target translation text according to the input prompt text, thereby improving the editing efficiency of the translation text.
[0076] The disclosed embodiment obtains a translated text by performing speech recognition and text translation on the speech in the source video, and displays the translated text through a translation content display page at the same time. When a translation editing instruction is received, the translated text to be edited that matches the translation editing instruction is obtained, and an input prompt text matching the translated text to be edited is generated and displayed to the user to help the user modify the translated text. This solves the problem of inaccurate modification results of the translated subtitles by the user in the prior art, can provide modifiable results, reduce the language ability required to modify the translated text, thereby reducing the difficulty of translation editing, and at the same time, improves the accuracy of translation editing. At the same time, the user can update the translated text according to the input prompt text, shortens the editing time of the translated text, and improves the efficiency of translation editing.
[0077] In an exemplary embodiment, Figure 7 Flow chart of a video subtitle translation and editing method in an embodiment of the present disclosure, the method specifically comprises the following steps:
[0078] S210, obtaining a source video, and generating a translation content display page according to the source video, wherein the translation content display page includes at least one time range and translation texts matching each time range.
[0079] For any incomplete description of the embodiments of the present disclosure, please refer to the foregoing content.
[0080] S220, when receiving a translation editing instruction, obtaining a translation to be edited in a target translation text matched by the translation editing instruction, wherein the translation editing instruction includes a character editing instruction or a word editing instruction, wherein the character editing instruction is used to edit characters in the first translation to be edited, wherein the first translation to be edited includes one word, and the word editing instruction is used to edit a second translation to be edited, wherein the second translation to be edited includes at least one word.
[0081] The character editing instruction is used to edit some of the characters in the divided words in the target translation text. The word editing instruction is used to edit at least one of the divided words in the target translation text. The editing may include deletion or addition. The smallest text element that can be edited in the translation text may be a character.
[0082] If the translation editing instruction is a character editing instruction, the translation to be edited is a word and is determined as the first translation to be edited. In fact, the character editing instruction is to edit at least one character in a word, and the editing is performed in units of characters.
[0083] If the translation editing instruction is a word editing instruction, the translation to be edited is a short sentence or a combination of multiple words formed by at least one word, and is determined as the second translation to be edited. The word editing instruction is to edit one or several words, and the editing is performed in units of words.
[0084] It should be noted that the character editing instructions and word editing instructions need to determine the division of characters, words and sentences. Usually, in Chinese text, a Chinese character is a character, a word includes at least one character, and a sentence includes at least one word. Among them, words need to be divided by a word segmentation algorithm. For example, I don’t have athletic talent, which is divided into four words: me, no, athletic and talent. Among them, the first word only includes 1 character, and the second word, the third word and the fourth word all include two characters. And sentences can be divided by punctuation marks, for example, the characters between the previous punctuation mark and the next punctuation mark are regarded as a sentence. Usually, in English text, a word is a word, a word includes at least one character, and a sentence includes at least one word. Among them, words can be divided by spaces, for example, the characters between the previous space and the next space are regarded as a word, and the spaces can be replaced by punctuation marks.
[0085] For example, the target translation text is: I have no exercise talent, and all words after I are selected and deleted. This instruction is used to delete multiple words. This instruction is a word editing instruction. At this time, the translation to be edited is: have no exercise talent. The user adds a to the deleted target translation text without entering a space or punctuation mark. It can be determined that the user wants to edit the word. The instruction to add a is a character editing instruction. At this time, the translation to be edited is: have.
[0086] The language of the target translation text may include Chinese, English and Japanese, and may also include Korean, French, German and Russian, etc., which is not specifically limited in the embodiments of the present disclosure.
[0087] S230: Generate and display an input prompt text according to the translation to be edited, wherein the input prompt text is used to instruct the user to update the translation to be edited according to the input prompt text.
[0088] If the user does not input any characters, the input prompt text is the same as the translation to be edited; if the user inputs characters different from the translation to be edited, the input prompt text can be determined based on the characters associated with the translation to be edited and the translation editing instruction. The server associated with the translation content display page can re-convert the translation to be edited, and search the conversion results that match the characters associated with the translation editing instruction as the input prompt text.
[0089] For example, the original text in the source video is: I have no exercise talent; the target translation text is: I have no exercise talent; the translation to be edited is: have no exercise talent; the user deletes the translation to be edited, and the input prompt text is: have no exercise talent. The user then inputs am, that is, the characters associated with the translation editing instruction include: am; according to the characters associated with the translation editing instruction and the translation to be edited, the translation of having no exercise talent is retranslated, and the generated input prompt text is: not athletic.
[0090] Optionally, the translation editing instruction includes a character editing instruction; generating and displaying an input prompt text based on the translation to be edited includes: obtaining input characters that match the character editing instruction; obtaining unedited characters that match the character editing instruction in the first translation to be edited; generating at least one prompt word based on each of the input characters and the unedited characters, and determining it as the input prompt text, wherein the prompt word includes each of the input characters and the unedited characters.
[0091] The input characters are characters input by the user. The unedited characters are characters that the user has not deleted in the text to be edited, and the unedited characters can be empty. The prompt words are used to prompt characters other than the characters included in the word, so as to prompt the user to enter the word, reduce the user's word spelling errors, improve the editing accuracy, and reduce the editing difficulty. A prompt follow-up area can be generated, and at least one prompt word can be displayed in a list form. According to the remaining characters of the original word after deletion and the input characters, the matching prompt words can be queried in the preset word database, so that the user can directly obtain all the characters included in the word, and word spelling errors can be avoided, wherein the matching prompt words are words including the input characters and the unedited characters. At least one prompt word is prompted to the user as an input prompt text. The words that match the input characters and the unedited characters can be queried from the most frequently used words and determined as prompt words. Alternatively, a word with the same semantics or the same part of speech as the first translation to be edited is obtained and determined as a prompt word. Among them, the word including input characters and unedited characters can be a word in which the first n consecutive characters are the same as the characters formed by concatenating the unedited characters and the input character string, n is the same as the total number of unedited characters and input characters, and the character order of the n consecutive characters is the same as the input order of the unedited characters and input characters.
[0092] Exemplarily, the first translation to be edited is: third; the user deletes the first translation to be edited through a character editing instruction, and the deleted text is: th; at this time, no prompt word is generated or only the content consistent with the text to be translated is prompted, such as the prompt word third. At this time, the unedited characters are: th, and the user adds an input character e after th, which is different from the character i at the matching position in the translation to be edited. It is determined that the user has added the input character, and the instruction is determined to be a character editing instruction. At this time, the string formed by the input characters and the unedited characters is the, and words including the can be queried as prompt words, such as the, there, or theeth, etc. In addition, if the query result is empty, the prompt word may not be generated. Usually the number of prompt words is 0-3. For another example, Figure 8 As shown, the user inputs the character a, and the prompt words include an, am, and are.
[0093] It should be noted that the prompt word is different from the editing result expected by the user. The user can continue to add input characters. Each time a character is added, a prompt word matching the input character and the characters to be added will be selected from the translation data for prompt. However, the user's character editing instruction is to edit each character one by one. If the user inputs too fast, the user does not need to provide a prompt at this time, or the number of unedited characters and input characters is too small, resulting in inaccurate prompts. Therefore, after the user enters the character editing instruction, a set time can be waited to generate a prompt word as an input prompt text to display to the user.
[0094] In fact, if the character editing instruction is only used to delete some characters in a word, no prompt word will be generated, or content consistent with the text to be translated will be generated. Only when the user adds at least one input character through the character editing instruction, and the input character is different from the character in the translation to be edited, the subsequent input prompt will be made according to the content of the input character added by the user. In fact, the prompt in the word dimension will ignore the user's editing results in the character dimension. For example, the user's input of English words may have spelling errors, or the input of Chinese words may have typos in the words, etc. In this way, the prompt in the word dimension based on the characters input by the user will greatly reduce the hit probability of the editing result expected by the user, making it difficult to accurately determine the editing result expected by the user, resulting in inaccurate prompt text. Therefore, the word content can be prompted first, and on the basis of determining the word content, the complete phrase content can be further prompted to improve the accuracy of the prompt content.
[0095] It is understandable that if the user deletes all characters in a word, the deletion instruction is actually a word editing instruction. Accordingly, the input prompt text is a prompt for multiple words, not a prompt for the characters included in a certain word.
[0096] Through character editing instructions, prompts can be given for some characters included in a word, which can improve the user's prompts in the character dimension, increase the probability of hitting the editing result expected by the user, accurately determine the editing result expected by the user, and improve the accuracy of the prompt text.
[0097] Optionally, the translation editing instruction includes a word editing instruction; generating and displaying an input prompt text based on the translation to be edited includes: obtaining at least one input word matching the word editing instruction; generating a prompt phrase based on the second text to be edited and each of the input words, and determining it as the input prompt text, wherein the semantics of the prompt phrase are the same as those of the second text to be edited, and the prompt phrase includes at least one word.
[0098] The input word is a word input by the user. The second text to be edited is combined with the input word to generate a prompt phrase. The prompt phrase is used to prompt the words in the sentence. The second text to be edited has the same semantics as the prompt phrase.
[0099] For example, the target translation text is: I have no exercise talent; the translation to be edited is: have no exercise talent; the user deletes the translation to be edited, and the input prompt text is: have no exercise talent. The user then enters am and a space to confirm that a word is input, that is, the input word includes: am; the second text to be edited is: no exercise talent. According to the input word associated with the translation editing instruction and the second translation to be edited, the semantics of the prompt phrase can be determined as having no athletic talent, and accordingly, the generated input prompt phrase is: not athletic.
[0100] Through word editing instructions, prompts can be given for multiple words included in a sentence, which can improve the user's prompts in the word dimension, increase the probability of hitting the editing result expected by the user, accurately determine the editing result expected by the user, and improve the accuracy of the prompt text.
[0101] In a specific example, the target translation text is: I have no exercise talent, and the translation text after the user deletes it is: I. When the user inputs a new character a, since it is not detected that the user has input a complete word, it is determined that the user has input a character editing instruction. Based on a, prompt words such as am, are, and an are generated, which are determined to be input prompt text. After the user inputs the new character am and a space, it is detected that the user has input a complete word, and it is determined that the user has input a word editing instruction. Based on am, the prompt phrase not athletic is generated, which is determined to be input prompt text.
[0102] Optionally, after displaying the input prompt text, the method further includes: receiving an input instruction for prompting end content, and / or receiving a confirmation instruction from the user regarding the input prompt text; and stopping displaying the input prompt text.
[0103] The end of the prompt distinguishes words in the text. The end of the prompt is at the end of a number of consecutive characters, so that the consecutive characters are determined as a word. Usually, the end of the prompt is mainly used in multi-letter languages such as English, Russian, French or Italian, which usually use spaces to distinguish the two words before and after.
[0104] For example, in English, a word is divided by spaces. The prompt ends with a space. Specifically, "character + space" is used as the criterion for completing the "word" operation. When the user inputs "character + space", the input identification image (cursor) is located after the "space".
[0105] For Chinese, there is no specific content to distinguish between words. For example, in Chinese, at least one input character is usually searched in a preset word library. If a word including the input character is found in the word library, and the word does not include other characters except the input character, the at least one input character is determined to be a word. In addition, there are other word division methods and judgment methods, which are not specifically limited in the embodiments of the present disclosure.
[0106] Among them, receiving an input instruction for prompting the end content indicates that the user did not hit the input prompt text, and the user manually input a complete word. The confirmation instruction is used to hit the input prompt text to update the translation text according to the input prompt text. The confirmation instruction can be a trigger operation for any prompt word or prompt phrase, and the trigger operation can be a click operation, or a specific gesture operation, etc. For languages such as English, if the input prompt text is a prompt word, it is necessary to add the prompt word and a space at the matching position in the translation text.
[0107] After the user hits the input prompt text or after the user does not hit the input prompt text but completes the editing of a word, it indicates that the prompt function of the input prompt text ends and the input prompt text can be stopped. The input prompt text that stops being displayed is the current input prompt text, and a new input prompt text can be generated according to the content of subsequent updates.
[0108] By stopping displaying the input hint text after the user completes word editing or directly hits the input hint text, it is possible to flexibly adjust whether to display the input hint text, thereby improving the user experience.
[0109] S240: Acquire the text input by the user for the input prompt text, and update the target translation text.
[0110] The disclosed embodiment configures the translation editing instruction as a character deletion instruction and / or a character input instruction, triggers the acquisition of the translation to be edited, and generates an input prompt text matching the translation to be edited, and displays it to the user, so that the user can edit the translation text according to the input prompt text, thereby realizing real-time editing of the translation text, improving the real-time nature of translation text editing, and at the same time, improving the accuracy and efficiency of the translation text.
[0111] In an exemplary embodiment, Fig. 9 Flow chart of a video subtitle translation and editing method in an embodiment of the present disclosure, the method specifically comprises the following steps:
[0112] S310, obtaining a source video and audio data matching the source video, and performing speech recognition on the audio data matching the source video to generate an original text.
[0113] For any incomplete description of the embodiments of the present disclosure, please refer to the foregoing content.
[0114] The audio data may refer to the speech signal in the source video. The original text refers to the speech recognition result of the audio data. The original text may be used as the original subtitle of the source video.
[0115] S320, obtaining the video duration of the source video, dividing the video duration, generating at least one time range, and determining original text units matching each time range.
[0116] The video duration may refer to the time of the source video. Usually, the subtitles of the source video are displayed in units of a sentence or a word, so that the text corresponding to a time range is at least one word or a sentence. The speech duration matched by the speech data is obtained in the source video. During the speech recognition process, the speech data can be divided according to words or sentences, and the corresponding speech duration is divided accordingly to form at least one time range. At the same time, the divided words or sentences are subjected to speech recognition to generate original text units, and the speech duration matched by the divided words or sentences is used as the time range matched by the original text unit. Among them, there is a time without speech in the source video, which is different from the speech duration and is not used as a time range.
[0117] All original text units constitute the text recognized by the source video speech. Alternatively, it can be understood that the original text corresponding to the source video is divided into multiple original text units according to sentences or words.
[0118] S330, performing text conversion on each of the original text units according to the specified language, generating a translation text matching each of the original text units, and using the translation text as the translation text matching each of the time ranges.
[0119] Multiple target texts constitute the translation of the source text. One target text matches one source text unit, and the semantics of the target text is the same as that of the matching source text unit, but the language is different.
[0120] S340, generating a translation content display page according to each of the time ranges and the matching translation texts, wherein the translation content display page includes at least one time range and a translation area matching each of the time ranges, and the translation area matching the time range is used to display the translation text matching the time range.
[0121] A translation area is used to display a translated text, wherein the translation area is an operable area.
[0122] The time range can be segmented by a time segmentation trigger instruction, and correspondingly, the translation text matching the time range is segmented accordingly. Exemplarily, the translation text matching the time range can be segmented into two translation texts before and after according to the input identification image (cursor), and the time range can be segmented into a time range matching the translation text in the previous sequence and a time range matching the translation text in the later sequence, thereby forming a translation text segmented into two time ranges and matching the two time ranges respectively.
[0123] Two adjacent time ranges can be combined through a time combination trigger instruction, and correspondingly, the translation texts matching the time ranges are combined accordingly. Two adjacent time ranges can be combined to form a time range, and the translation texts matching the two time ranges can be spliced into a translation text according to the time sequence. For example, the translation text with a later time sequence can be spliced behind the translation text with an earlier time sequence to form a translation text, which is used as the translation text matching the combined time range.
[0124] Optionally, generating a translation content display page according to each of the time ranges and the matching translated texts includes: generating a translation content display page according to each of the time ranges, the matching original text units and the matching translated texts, the translation content display page also including: an original text area matching each of the time ranges, the original text area matching the time ranges being used to display the original text units matching the time ranges.
[0125] An original area is used to display an original text unit. The original area and the translation area correspond one to one. Accordingly, the original text unit in the original area matches the translated text in the corresponding translation area. The semantics of the original text unit in the original area is the same as the semantics of the translated text in the corresponding translation area, but the language is different. Among them, the original area is the operable area.
[0126] In a specific example, Fig.10 As shown, the translation content display page includes each time range, the original text unit matching each time range and the translated text matching each time range, wherein the time range is on the left side of the original text area and the translation area, the original text area is located above the translation area, and at the same time, the original text area only displays part of the original text, which is convenient for users to partially view the original text and the corresponding translation, thereby improving editing efficiency.
[0127] Optionally, generating a translation content display page according to each of the time ranges, matching original text units and matching translated text units includes: adding the original text units and matching translated texts that match each of the time ranges to the source video to generate a subtitle video; generating a translation content display page according to the subtitle video, each of the time ranges, matching original text units and matching translated texts, the translation content display page also including: a video playback area, the video playback area being used to play the subtitle video.
[0128] In a specific example, Fig.11 As shown, the translated content display page includes a video playback area, various time ranges, original text units that match various time ranges, and translated texts that match various time ranges. The left side of the text area is the video playback area. The original text unit is used to generate original subtitles, and the translated text is used to generate translated subtitles. The original subtitles and translated subtitles are added to the source video to generate a subtitled video, which can be played in the video playback area to display the edited translated subtitles.
[0129] The original text unit and the translated text can be stored as subtitle files, and the subtitle video can be stored as a video file, which can be stored in a local or network database.
[0130] In addition, for each time range, a playback control can be configured in the translation content display page. The user can trigger the playback control to play only the subtitled videos matching the time range in the video playback area.
[0131] By configuring the video playback area and displaying the video effect after adding the translated subtitles formed by the edited voice editing text in the video playback area, the editing effect of the translated text is displayed in real time, thereby improving the generation and editing efficiency of video translated subtitles.
[0132] Optionally, the translation content display page also includes a modification display area, and a modification display area is used to display a dynamic prompt text. The modification display area is triggered only when a prompt display trigger instruction is received. Specifically, before receiving the translation editing instruction, it also includes: when receiving the prompt display trigger instruction, generating a dynamic prompt text and displaying it in the modification display area, the dynamic prompt text is the same as the target translation text; while displaying the input prompt text, it also includes: in the dynamic prompt text, replacing the text matching the translation to be edited with the input prompt text, the text style of the input prompt text is different from the text style of the text in the dynamic prompt text.
[0133] In a specific example, Fig.12As shown, the translation content display page includes each time range, the original text unit matching each time range, the translation text matching each time range, and the dynamic prompt text matching a certain time range. Among them, the corresponding translation text is configured below the original text unit, which is convenient for users to partially view the original text and the corresponding translation, thereby improving editing efficiency. The user clicks the original text unit with the mouse, or slides the mouse to the area where the original text unit is located, confirms that the prompt display trigger instruction is detected, and generates a dynamic prompt text area matching the original text unit accordingly, and displays the corresponding dynamic prompt text. The dynamic prompt text area matches the time range and is usually located below the translation area.
[0134] In a specific example, Fig.13 As shown, the text in the original text area 107 is the original text unit corresponding to the target translation text, the text in the translation area 102 is the target translation text, the text in the dynamic prompt text area 103 is the dynamic prompt text, and the text in the prompt follow area 104 is the input prompt text. The updated target translation text formed by replacing the translation to be edited (deleted, not shown in the translation area 102) with the input prompt text is the text in the dynamic prompt text area 103. In fact, the translation to be edited is a deleted text, and the updated target translation text formed by replacing the translation to be edited with the input prompt text can be an updated target translation text formed by adding the input prompt text to the existing target translation text. The starting time point 105 and the ending time point 106 form a time range that matches the original text unit, and the time range is: the time range formed by the starting time point 0:00:8-the ending time point 0:00:12.
[0135] In addition, the user can also click the translated text with the mouse, or slide the mouse to the area where the translated text is located, to confirm that the prompt display trigger instruction is detected, and a dynamic prompt text area matching the translated text is generated accordingly, and the corresponding dynamic prompt text is displayed.
[0136] After generating the translation content display page, it also includes: after generating the translation content display page, it also includes: when receiving a translation follow-up closing instruction, according to the received editing instruction of the target original text unit, updating the target original text unit; when receiving a translation follow-up opening instruction, according to the received editing instruction of the target original text unit, updating the target original text unit, and according to the updated target original text unit, correcting the translation text matching the target original text unit.
[0137] The translation follow close instruction is used to control that the translated text is not modified when the original text is modified. The translation follow open instruction is used to control that the translated text is modified accordingly when the original text is modified. The translation follow close instruction and the translation follow open instruction may refer to trigger operations for the translation follow button. Among them, the translation follow button may correspond to the entire original text, or only to a certain original text unit. In addition, when the operation identification image (such as a mouse) clicks on the translation area, the original text area, or an area outside the modification display area, it is determined that the translation follow close instruction is received, thereby eliminating the need for the user to input trigger operations for the translation follow button one by one. When the translation follow close instruction is received, adjusting the syntax, structure, or adding instructions of the original text will not affect the translation result.
[0138] The editing instruction of the target original text unit is used to operate the target original text unit.
[0139] When a translation follow close instruction is received, the translation follow state is closed. At this time, an editing instruction of the target original text unit is detected, and only the text included in the target original text unit is operated, and the translation text matching the target original text unit is not operated.
[0140] When the translation follow-up start instruction is received, the translation follow-up state is turned on. At this time, the editing instruction of the target original text unit is detected, and the text included in the target original text unit is operated. At the same time, the machine translation is re-performed according to the updated original text unit to generate an updated translation text, and the re-translation operation is automatically implemented to ensure the correspondence between the original text and the translation text.
[0141] In a specific example, Fig.14 As shown, the original text unit in the original text area 101 is: I am the third sentence of this subtitle, now I want to translate this sentence again; the translated text in the translation area 102 is: I am the third sentence of the subtitle, now I want to translate it again; the dynamic prompt text in the dynamic prompt text area 103 is: I am the third sentence of the subtitle, now I want to translate it again. At present, the original text unit, the translated text and the dynamic prompt text correspond to each other, and the three have the same semantics.
[0142] like Fig.15As shown in the figure, when the translation follow close instruction is received, the "three" in the original text unit is changed to "four", and the corresponding original text unit is: I am the fourth sentence of this subtitle, and now I want to translate this sentence again. At this time, the edited text is not updated following the editing of the original text unit, and is still: I am the third sentence of the subtitle, now I want to translate it again. The dynamic prompt text still corresponds to the original text unit and is updated following the editing of the original text unit, and is: I am the fourth sentence of the subtitle, now I want to translate it again.
[0143] like Fig.16 As shown in the figure, when the translation follow-up start instruction is received, the "three" in the original text unit is changed to "four", and the corresponding original text unit is: I am the fourth sentence of this subtitle, and now I want to translate this sentence again. At this time, the edited text corresponds to the original text unit and is updated following the editing of the original text unit, which is: I am the fourth sentence of the subtitle, now I want to translate it again. The dynamic prompt text still corresponds to the original text unit and is updated following the editing of the original text unit, which is: I am the fourth sentence of the subtitle, now I want to translate it again.
[0144] Through the translation follow-up closing command and the translation follow-up opening command, the original text and the translated text can be freely modified. At the same time, it can avoid the user's accidental modification of the translated text after the editing of the translated text is completed, thereby improving the editing accuracy of the translated text.
[0145] S350: When receiving the translation and editing instruction, obtaining the translation to be edited from the target translation text matching the translation and editing instruction.
[0146] S360: Generate and display an input prompt text according to the translation to be edited, wherein the input prompt text is used to instruct the user to update the translation to be edited according to the input prompt text.
[0147] S370: Acquire the text input by the user for the input prompt text, and update the target translation text.
[0148] The disclosed embodiment divides the video duration and the speech recognition results to generate multiple time ranges and original text units that match the time ranges, and translates each original text unit to form a corresponding translation text, and generates a translation content display page based on each original text unit and the translation text. The original text content and the corresponding translation text content can be displayed in the translation content display page in comparison, so that the user can edit the translation text according to the original text content, thereby improving editing efficiency.
[0149] Fig.17 The present invention provides a schematic diagram of the structure of a video subtitle translation and editing device provided in an embodiment of the present invention. The device can be implemented in software and / or hardware, and the device can be configured in an electronic device. The device can include: a translation content display page generation module 410, a translation acquisition module 420, an input prompt text display module 430, and a translation text editing module 440.
[0150] A translation content display page generation module 410 is used to obtain a source video and generate a translation content display page according to the source video, wherein the translation content display page includes at least one time range and translation texts matching each time range;
[0151] The translation to be edited obtaining module 420 is used to obtain the translation to be edited in the target translation text matching the translation editing instruction when receiving the translation editing instruction;
[0152] An input prompt text display module 430 is used to generate and display an input prompt text according to the translation to be edited, wherein the input prompt text is used to instruct the user to update the translation to be edited according to the input prompt text;
[0153] The translation text editing module 440 is used to obtain the text input by the user for the input prompt text and update the target translation text.
[0154] The disclosed embodiment obtains a translated text by performing speech recognition and text translation on the speech in the source video, and displays the translated text through a translation content display page at the same time. When a translation editing instruction is received, the translated text to be edited that matches the translation editing instruction is obtained, and an input prompt text matching the translated text to be edited is generated and displayed to the user to help the user modify the translated text. This solves the problem of inaccurate modification results of the translated subtitles by the user in the prior art, can provide modifiable results, reduce the language ability required to modify the translated text, thereby reducing the difficulty of translation editing, and at the same time, improves the accuracy of translation editing. At the same time, the user can update the translated text according to the input prompt text, shortens the editing time of the translated text, and improves the efficiency of translation editing.
[0155] Furthermore, the translation editing instruction includes a character editing instruction or a word editing instruction, wherein the character editing instruction is used to edit characters in the first translation to be edited, and the first translation to be edited includes a word; and the word editing instruction is used to edit the second translation to be edited, and the second translation to be edited includes at least one word.
[0156] Furthermore, the translation editing instruction includes a character editing instruction; the input prompt text display module 430 includes: a character editing unit, used to obtain input characters matching the character editing instruction; in the first translation to be edited, obtaining unedited characters matching the character editing instruction; generating at least one prompt word based on each of the input characters and the unedited characters, and determining it as the input prompt text, the prompt word including each of the input characters and the unedited characters.
[0157] Furthermore, the translation editing instruction includes a word editing instruction, and the input prompt text display module 430 includes: a word editing unit, used to obtain at least one input word matching the word editing instruction; generating a prompt phrase based on the second text to be edited and each of the input words, and determining it as the input prompt text, the semantics of the prompt phrase being the same as the semantics of the second text to be edited, and the prompt phrase including at least one word.
[0158] Furthermore, the video subtitle translation and editing device also includes: an input prompt text stop display module, which is used to receive an input instruction of the prompt end content after displaying the input prompt text, and / or receive a confirmation instruction from the user for the input prompt text; and stop displaying the input prompt text.
[0159] Furthermore, the input prompt text display module 430 includes: an input prompt text highlighting unit, which is used to generate a prompt following area at the position associated with the translation editing instruction, and display the input prompt text in the prompt following area, and the translation to be edited is located in the middle of the target translation text; display the input prompt text in the target translation text, the text style of the input prompt text is different from the text style of the target translation text, and the translation to be edited is located at the end of the target translation text.
[0160] Furthermore, the video subtitle translation and editing device also includes: a dynamic prompt text generation module, which is used to generate a dynamic prompt text when a prompt display trigger instruction is received before the translation editing instruction is received, and the dynamic prompt text is the same as the target translation text; the video subtitle translation and editing device also includes: an input prompt text highlighting module, which is used to replace the text matching the to-be-edited translation with the input prompt text in the dynamic prompt text while displaying the input prompt text, and the text style of the input prompt text is different from the text style of the text in the dynamic prompt text.
[0161] Furthermore, the translation content display page generation module 410 includes: an original text unit division unit, which is used to obtain the audio data matching the source video, and perform voice recognition on the audio data matching the source video to generate the original text; obtain the video duration of the source video, and divide the video duration to generate at least one time range and determine the original text unit matching each time range; perform text conversion on each original text unit according to the specified language, generate a translation text matching each original text unit, and use it as the translation text matching each time range; generate a translation content display page according to each time range and the matching translation text, the translation content display page includes at least one time range and a translation area matching each time range, and the translation area matching the time range is used to display the translation text matching the time range.
[0162] Furthermore, the original text unit division unit includes: an original text unit display subunit, which is used to generate a translation content display page according to each of the time ranges, the matching original text units and the matching translation texts, and the translation content display page also includes: an original text area that matches each of the time ranges, and the original text area that matches the time range is used to display the original text unit that matches the time range.
[0163] Furthermore, the video subtitle translation and editing device also includes: a translation follow trigger module, which is used to update the target original text unit according to the received editing instruction of the target original text unit when a translation follow close instruction is received after generating the translation content display page; when a translation follow start instruction is received, the target original text unit is updated according to the received editing instruction of the target original text unit, and the translation text matching the target original text unit is corrected according to the updated target original text unit.
[0164] Furthermore, the original text unit division unit includes: a subtitle video display subunit, which is used to add the original text units and the matching translation texts that match each of the time ranges to the source video to generate a subtitle video; based on the subtitle video, each of the time ranges, the matching original text units and the matching translation texts, a translation content display page is generated, and the translation content display page also includes: a video playback area, which is used to play the subtitle video.
[0165] The video subtitle translation and editing device provided in the embodiment of the present disclosure belongs to the same inventive concept as the video subtitle translation and editing method. The technical details not fully described in the embodiment of the present disclosure can be found in the foregoing, and the embodiment of the present disclosure has the same beneficial effects as the foregoing embodiment.
[0166] Reference below Fig.18 , which shows an electronic device (eg, Figure 1 The electronic device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.18 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0167] like Fig.18 As shown, the electronic device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0168] Typically, the following devices may be connected to the I / O interface 505: an input device 506 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. Although Fig.18The electronic device 500 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0169] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 509, or installed from a storage device 508, or installed from a ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0170] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0171] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0172] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0173] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: obtains a source video, and generates a translation content display page based on the source video, wherein the translation content display page includes at least one time range and a translation text matching each time range; when receiving a translation editing instruction, obtains a translation to be edited from a target translation text matching the translation editing instruction; generates and displays an input prompt text based on the translation to be edited, wherein the input prompt text is used to instruct a user to update the translation to be edited based on the input prompt text; obtains the text input by the user for the input prompt text, and updates the target translation text.
[0174] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0175] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0176] The modules involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of the module does not limit the module itself in some cases. For example, the target page generation module may also be described as "a module for generating the target page according to the single inheritance configuration file, the first themes, and the inheritance order of the first themes".
[0177] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0178] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0179] According to one or more embodiments of the present disclosure, the present disclosure provides a video subtitle translation and editing method, including:
[0180] Acquire a source video, and generate a translation content display page according to the source video, wherein the translation content display page includes at least one time range and translation texts matching each time range;
[0181] When receiving the translation editing instruction, obtaining the translation to be edited in the target translation text matching the translation editing instruction;
[0182] According to the translation to be edited, generating and displaying an input prompt text, wherein the input prompt text is used to instruct the user to update the translation to be edited according to the input prompt text;
[0183] The text input by the user in response to the input prompt text is obtained, and the target translation text is updated.
[0184] According to one or more embodiments of the present disclosure, in the video subtitle translation and editing method provided by the present disclosure, the receiving of the translation and editing instruction includes: receiving a character deletion instruction, and / or a character input instruction, the characters associated with the character input instruction are different from the characters included in the translation to be edited, and the language of the target translation text includes a single-character language and a multi-character language.
[0185] According to one or more embodiments of the present disclosure, in the video subtitle translation and editing method provided by the present disclosure, the language of the target translation text is a multi-character language; the receiving of the character deletion instruction includes: receiving a deletion instruction of the character in the translation to be edited and the input content corresponding to the set character end key; the receiving of the character input instruction includes: receiving an input character and an input instruction of the character end key, and the input character does not match the character included in the translation to be edited; the character end key is a space bar.
[0186] According to one or more embodiments of the present disclosure, the video subtitle translation and editing method provided by the present disclosure, after receiving a character input instruction, also includes: obtaining at least one input character matching the character input instruction, the language of the target translation text being a multi-character language; generating at least one prompt word according to each of the input characters, and displaying the prompt word, the prompt word including each of the input characters; receiving an input instruction of the character end key, and / or receiving a confirmation instruction of the user for the target prompt word; and stopping displaying each of the prompt words.
[0187] According to one or more embodiments of the present disclosure, in the video subtitle translation and editing method provided by the present disclosure, the displaying of input prompt text includes: generating a prompt following area at a position associated with the translation editing instruction, and displaying the input prompt text in the prompt following area, wherein the translation to be edited is located in the middle of the target translation text; and displaying the input prompt text in the target translation text, wherein the text style of the input prompt text is different from the text style of the target translation text, and the translation to be edited is located at the end of the target translation text.
[0188] According to one or more embodiments of the present disclosure, in the video subtitle translation and editing method provided by the present disclosure, before receiving the translation and editing instruction, it also includes: when receiving the prompt display trigger instruction, generating a dynamic prompt text, the dynamic prompt text is the same as the target translation text; while displaying the input prompt text, it also includes: in the dynamic prompt text, replacing the text matching the translation to be edited with the input prompt text, the text style of the input prompt text is different from the text style of the text in the dynamic prompt text.
[0189] According to one or more embodiments of the present disclosure, in the video subtitle translation and editing method provided by the present disclosure, the generation of a translation content display page based on the source video includes: obtaining audio data matching the source video, and performing speech recognition on the audio data matching the source video to generate original text; obtaining the video duration of the source video, and dividing the video duration to generate at least one time range and determine the original text units matching each time range; performing text conversion on each original text unit according to a specified language to generate a translation text matching each original text unit, and using it as the translation text matching each time range; generating a translation content display page based on each time range and the matching translation text, the translation content display page including at least one time range and a translation area matching each time range, the translation area matching the time range being used to display the translation text matching the time range.
[0190] According to one or more embodiments of the present disclosure, in the video subtitle translation and editing method provided by the present disclosure, generating a translation content display page according to each of the time ranges and the matching translated texts includes: generating a translation content display page according to each of the time ranges, the matching original text units and the matching translated texts, the translation content display page also including: an original text area matched by each of the time ranges, the original text area matched by the time ranges being used to display the original text unit matched by the time ranges.
[0191] According to one or more embodiments of the present disclosure, in the video subtitle translation and editing method provided by the present disclosure, after generating the translation content display page, it also includes: when receiving a translation follow-up closing instruction, updating the target original text unit according to the received editing instruction of the target original text unit; when receiving a translation follow-up opening instruction, updating the target original text unit according to the received editing instruction of the target original text unit, and correcting the translation text matching the target original text unit according to the updated target original text unit.
[0192] According to one or more embodiments of the present disclosure, in the video subtitle translation and editing method provided by the present disclosure, generating a translation content display page according to each of the time ranges, the matching original text units and the matching translated texts includes: adding the original text units and the matching translated texts that match each of the time ranges to the source video to generate a subtitle video; generating a translation content display page according to the subtitle video, each of the time ranges, the matching original text units and the matching translated texts, the translation content display page also includes: a video playback area, the video playback area is used to play the subtitle video.
[0193] According to one or more embodiments of the present disclosure, in the video subtitle translation and editing method provided by the present disclosure, the multi-character language includes English, and the single-character language includes Chinese or Japanese.
[0194] According to one or more embodiments of the present disclosure, the present disclosure provides a video subtitle translation and editing device, including:
[0195] A translation content display page generation module, used to obtain a source video and generate a translation content display page according to the source video, wherein the translation content display page includes at least one time range and a translation text matching each time range;
[0196] A translation to be edited obtaining module, used for obtaining the translation to be edited from the target translation text matching the translation editing instruction when receiving the translation editing instruction;
[0197] An input prompt text generation module, used to generate and display an input prompt text according to the translation to be edited, wherein the input prompt text is used to instruct the user to update the translation to be edited according to the input prompt text;
[0198] The translation text editing module is used to obtain the text input by the user in response to the input prompt text and update the target translation text.
[0199] According to one or more embodiments of the present disclosure, in the video subtitle translation and editing device provided by the present disclosure, the translation editing instruction includes a character editing instruction or a word editing instruction, the character editing instruction is used to edit the characters in the first translation to be edited, the first translation to be edited includes a word, and the word editing instruction is used to edit the second translation to be edited, the second translation to be edited includes at least one word.
[0200] According to one or more embodiments of the present disclosure, in the video subtitle translation and editing device provided by the present disclosure, the translation editing instruction includes a character editing instruction; the input prompt text display module includes: a character editing unit, used to obtain input characters matching the character editing instruction; in the first translation to be edited, obtaining unedited characters matching the character editing instruction; generating at least one prompt word based on each of the input characters and the unedited characters, and determining it as the input prompt text, the prompt word including each of the input characters and the unedited characters.
[0201] According to one or more embodiments of the present disclosure, in the video subtitle translation and editing device provided by the present disclosure, the translation editing instruction includes a word editing instruction, and the input prompt text display module includes: a word editing unit, used to obtain at least one input word matching the word editing instruction; based on the second text to be edited and each of the input words, a prompt phrase is generated and determined as the input prompt text, the semantics of the prompt phrase is the same as the semantics of the second text to be edited, and the prompt phrase includes at least one word.
[0202] According to one or more embodiments of the present disclosure, the video subtitle translation and editing device provided by the present disclosure further includes: an input prompt text stop display module, which is used to receive an input instruction of the prompt end content after displaying the input prompt text, and / or receive a confirmation instruction of the user for the input prompt text; and stop displaying the input prompt text.
[0203] According to one or more embodiments of the present disclosure, in the video subtitle translation and editing device provided by the present disclosure, the input prompt text display module includes: an input prompt text highlighting unit, which is used to generate a prompt following area at a position associated with the translation editing instruction, and display the input prompt text in the prompt following area, and the translation to be edited is located in the middle of the target translation text; the input prompt text is displayed in the target translation text, the text style of the input prompt text is different from the text style of the target translation text, and the translation to be edited is located at the end of the target translation text.
[0204] According to one or more embodiments of the present disclosure, in the video subtitle translation and editing device provided by the present disclosure, the video subtitle translation and editing device further includes: a dynamic prompt text generation module, which is used to generate a dynamic prompt text when a prompt display trigger instruction is received before receiving the translation editing instruction, and the dynamic prompt text is the same as the target translation text; the video subtitle translation and editing device further includes: an input prompt text highlighting module, which is used to replace the text matching the translation to be edited with the input prompt text in the dynamic prompt text while displaying the input prompt text, and the text style of the input prompt text is different from the text style of the text in the dynamic prompt text.
[0205] According to one or more embodiments of the present disclosure, in the video subtitle translation and editing device provided by the present disclosure, the translation content display page generation module includes: an original text unit division unit, which is used to obtain audio data matching the source video, and perform voice recognition on the audio data matching the source video to generate original text; obtain the video duration of the source video, and divide the video duration to generate at least one time range and determine the original text unit matching each time range; perform text conversion on each original text unit according to the specified language, generate a translation text matching each original text unit, and use it as the translation text matching each time range; generate a translation content display page according to each time range and the matching translation text, the translation content display page includes at least one time range and a translation area matching each time range, and the translation area matching the time range is used to display the translation text matching the time range.
[0206] According to one or more embodiments of the present disclosure, in the video subtitle translation and editing device provided by the present disclosure, the original text unit division unit includes: an original text unit display subunit, which is used to generate a translation content display page according to each of the time ranges, the matching original text units and the matching translation texts, and the translation content display page also includes: an original text area that matches each of the time ranges, and the original text area that matches the time range is used to display the original text unit that matches the time range.
[0207] According to one or more embodiments of the present disclosure, in the video subtitle translation and editing device provided by the present disclosure, the video subtitle translation and editing device also includes: a translation follow trigger module, which is used to update the target original text unit according to the received editing instruction of the target original text unit when receiving a translation follow close instruction after generating the translation content display page; when receiving a translation follow open instruction, update the target original text unit according to the received editing instruction of the target original text unit, and correct the translation text matching the target original text unit according to the updated target original text unit.
[0208] According to one or more embodiments of the present disclosure, in the video subtitle translation and editing device provided by the present disclosure, the original text unit division unit includes: a subtitle video display subunit, used to add the original text units and the matching translation texts that match each of the time ranges to the source video to generate a subtitle video; based on the subtitle video, each of the time ranges, the matching original text units and the matching translation texts, a translation content display page is generated, and the translation content display page also includes: a video playback area, and the video playback area is used to play the subtitle video.
[0209] According to one or more embodiments of the present disclosure, the present disclosure provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a video subtitle translation and editing method as described in any one of the embodiments of the present disclosure is implemented.
[0210] According to one or more embodiments of the present disclosure, the present disclosure provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the video subtitle translation and editing method as described in any one of the embodiments of the present disclosure.
[0211] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0212] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0213] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A video subtitle translation and editing method, characterized in that: include: Acquire a source video, and generate a translation content display page according to the source video, wherein the translation content display page includes at least one time range and translation texts matching each time range; When receiving the translation editing instruction, obtaining the translation to be edited in the target translation text matching the translation editing instruction; Generate and display an input prompt text according to the translation to be edited, wherein the input prompt text is used to instruct the user to update the translation to be edited according to the input prompt text, and the input prompt text has the same semantics as the translation to be edited but different content; Acquire the text input by the user for the input prompt text, and update the target translation text; The translation editing instruction includes a character editing instruction, and the character editing instruction is used to edit characters in a first translation to be edited, and the first translation to be edited includes a word.
2. The method according to claim 1, characterized in that: The translation editing instruction further includes a word editing instruction, and the word editing instruction is used to edit the second translation to be edited, and the second translation to be edited includes at least one word.
3. The method according to claim 2, characterized in that The translation editing instructions include character editing instructions; The step of generating and displaying an input prompt text according to the translation to be edited includes: Obtaining input characters that match the character editing instruction; In the first translation to be edited, obtaining unedited characters matching the character editing instruction; At least one prompt word is generated according to each of the input characters and the unedited characters, and is determined as an input prompt text, wherein the prompt word includes each of the input characters and the unedited characters.
4. The method according to claim 2, characterized in that: The step of generating and displaying an input prompt text according to the translation to be edited includes: Acquire at least one input word matching the word editing instruction; A prompt phrase is generated according to the second translation to be edited and each input word, and is determined as the input prompt text. The semantics of the prompt phrase is the same as that of the second translation to be edited, and the prompt phrase includes at least one word.
5. The method according to claim 3 or 4, characterized in that: After the input hint text is displayed, it also includes: receiving an input instruction for prompting the end of content, and / or receiving a confirmation instruction from the user for the input prompt text; Stop displaying the input hint text.
6. The method according to claim 1, characterized in that The display input prompt text includes: At the position associated with the translation editing instruction, a prompt following area is generated, and the input prompt text is displayed in the prompt following area, and the translation to be edited is located in the middle of the target translation text; The input prompt text is displayed in the target translation text, the text style of the input prompt text is different from the text style of the target translation text, and the translation to be edited is located at the end of the target translation text.
7. The method according to claim 1, characterized in that Before receiving translation editing instructions, it also includes: When receiving a prompt display trigger instruction, generating a dynamic prompt text, wherein the dynamic prompt text is the same as the target translation text; When the input prompt text is displayed, it also includes: In the dynamic prompt text, the text matching the to-be-edited translation is replaced with the input prompt text, and the text style of the input prompt text is different from the text style of the text in the dynamic prompt text.
8. The method according to claim 1, characterized in that The generating a translated content display page according to the source video includes: Acquire audio data matched by the source video, and perform speech recognition on the audio data matched by the source video to generate original text; Obtaining the video duration of the source video, dividing the video duration, generating at least one time range, and determining original text units matching each time range; Performing text conversion on each of the original text units according to the specified language, generating a translation text matching each of the original text units, and using the translation text as the translation text matching each of the time ranges; A translation content display page is generated according to each of the time ranges and the matching translation texts, wherein the translation content display page includes at least one time range and a translation area matching each of the time ranges, and the translation area matching the time range is used to display the translation text matching the time range.
9. The method according to claim 8, characterized in that Generating a translation content display page according to each of the time ranges and the matching translation texts includes: A translation content display page is generated according to each of the time ranges, the matching original text units and the matching translated texts. The translation content display page also includes: an original text area matching each of the time ranges, and the original text area matching the time range is used to display the original text unit matching the time range.
10. The method according to claim 9, characterized in that After generating the translated content display page, it also includes: When receiving the translation follow close instruction, updating the target original text unit according to the received editing instruction of the target original text unit; When a translation follow-up start instruction is received, the target original text unit is updated according to the received editing instruction of the target original text unit, and the translation text matching the target original text unit is corrected according to the updated target original text unit.
11. The method according to claim 9, characterized in that Generating a translation content display page according to each of the time ranges, the matching original text units and the matching translated texts includes: Adding the original text units and the matching translation texts of each of the time ranges to the source video to generate a subtitled video; A translation content display page is generated according to the subtitle video, each of the time ranges, the matching original text units and the matching translated texts. The translation content display page also includes: a video playback area, and the video playback area is used to play the subtitle video.
12. A video subtitle translation and editing device, characterized in that: include: A translation content display page generation module, used to obtain a source video and generate a translation content display page according to the source video, wherein the translation content display page includes at least one time range and a translation text matching each time range; A translation to be edited obtaining module, used for obtaining the translation to be edited from the target translation text matching the translation editing instruction when receiving the translation editing instruction; An input prompt text generating module, used to generate and display an input prompt text according to the translation to be edited, wherein the input prompt text is used to instruct the user to update the translation to be edited according to the input prompt text, and the input prompt text has the same semantics as the translation to be edited but different content; A translation text editing module, used to obtain the text input by the user for the input prompt text, and update the target translation text; The translation editing instruction includes a character editing instruction, and the character editing instruction is used to edit characters in a first translation to be edited, and the first translation to be edited includes a word.
13. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the video subtitle translation and editing method as described in any one of claims 1-11 is implemented.
14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the video subtitle translation and editing method as described in any one of claims 1-11 is implemented.
