Subtitle template configuration method and device, medium, electronic equipment and program product

By simultaneously displaying the template configuration area and the subtitle preview area on the terminal device screen, and simultaneously displaying the preview effect of the subtitle style, the problem of low subtitle template configuration efficiency in live broadcast scenarios is solved, and more intuitive and efficient subtitle template generation is achieved.

CN118632068APending Publication Date: 2024-09-10BEIJING VOLCANO ENGINE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411047681.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

In live broadcast scenarios, during the configuration process of subtitle templates, users need to repeatedly confirm the subtitle style and preview effect, resulting in low configuration efficiency and cumbersome operations.

Method used

Provides a subtitle template configuration method that simultaneously displays the template configuration area and the subtitle preview area on the terminal device screen, responds to the subtitle configuration operation, and synchronously displays the preview subtitles of the target subtitle style, visually displaying the subtitle display effect, and facilitating the user to confirm and generate the final Subtitle template.

Benefits of technology

It improves the efficiency of subtitle template configuration, reduces users' repeated confirmation operations between subtitle styles and preview effects, and simplifies the configuration process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118632068A
    Figure CN118632068A
Patent Text Reader

Abstract

The invention relates to a subtitle template configuration method and device, a medium, electronic equipment and a program product, a template configuration area and a subtitle preview area are displayed in a screen of terminal equipment at the same time, the subtitle display effect corresponding to a configured subtitle style can be visually displayed, and the subtitle template configuration efficiency is improved. The method comprises: in response to a trigger operation for creating a caption template in a terminal device, displaying a template configuration page, the template configuration page comprising a template configuration area and a caption preview area which are simultaneously displayed in a screen of the terminal device, the template configuration area displaying a caption configuration item for configuring a caption style, and the caption preview area displaying a caption configuration item for configuring a caption style; the subtitle preview area is used for displaying preview subtitles according to configured subtitle configuration items; and in response to a subtitle configuration operation in the template configuration area, determining a target subtitle style corresponding to the subtitle configuration operation, and synchronously displaying a preview subtitle corresponding to the target subtitle style in the subtitle preview area.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a configuration method, device, medium, electronic device and program product of a subtitle template. Background Art

[0002] With the popularity of live broadcasting and the increase in live broadcasting platforms, the application scenarios of live broadcasting are becoming increasingly diverse. In order to improve the audience's viewing experience and enhance the overall quality of live broadcasting content, the introduction of subtitles has become particularly critical.

[0003] The live broadcast operator can create corresponding subtitle templates according to the live broadcast scene. However, in the process of creating the subtitle template, it is necessary to repeatedly confirm between the configured subtitle style and the subtitle preview effect to determine the final subtitle template. Summary of the invention

[0004] This summary is provided to introduce concepts in a brief form that will be described in detail in the detailed description below. This summary is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.

[0005] In a first aspect, the present disclosure provides a method for configuring a subtitle template, the method comprising: In response to a trigger operation for creating a subtitle template in a terminal device, a template configuration page is displayed, wherein the template configuration page includes a template configuration area and a subtitle preview area displayed simultaneously on a screen of the terminal device, the template configuration area displays subtitle configuration items for configuring a subtitle style, and the subtitle preview area is used to display preview subtitles according to the configured subtitle configuration items; In response to a subtitle configuration operation in the template configuration area, a target subtitle style corresponding to the subtitle configuration operation is determined, and a preview subtitle corresponding to the target subtitle style is synchronously displayed in the subtitle preview area.

[0006] In a second aspect, the present disclosure provides a device for configuring a subtitle template, the device comprising: A display module, configured to display a template configuration page in response to a trigger operation for creating a subtitle template in a terminal device, wherein the template configuration page includes a template configuration area and a subtitle preview area displayed simultaneously on a screen of the terminal device, wherein the template configuration area displays subtitle configuration items for configuring a subtitle style, and the subtitle preview area is used to display preview subtitles according to the configured subtitle configuration items; The determination module is used to determine a target subtitle style corresponding to the subtitle configuration operation in the template configuration area in response to the subtitle configuration operation, and synchronously display the preview subtitles corresponding to the target subtitle style in the subtitle preview area.

[0007] In a third aspect, the present disclosure provides a computer-readable medium having a computer program stored thereon, which, when executed by a processing device, implements the steps of any one of the methods described in the first aspect.

[0008] In a fourth aspect, the present disclosure provides an electronic device, including: a storage device having a computer program stored thereon; A processing device is used to execute the computer program in the storage device to implement the steps of any method described in the first aspect above.

[0009] In a fifth aspect, the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of any one of the methods in the first aspect.

[0010] Through the above technical solution, the template configuration page includes a template configuration area and a subtitle preview area that are simultaneously displayed on the screen of the terminal device. In response to the subtitle configuration operation in the template configuration area, the corresponding target subtitle style is determined, and the preview subtitle corresponding to the target subtitle style is synchronously displayed in the subtitle preview area. With this method, the template configuration area and the subtitle preview area are simultaneously displayed on the screen of the terminal device, and the preview subtitle corresponding to the configured target subtitle style is synchronously displayed in the subtitle preview area, so that the subtitle display effect corresponding to the configured subtitle style can be intuitively displayed, which is convenient for the user to further confirm and generate the final subtitle template, thereby improving the configuration efficiency of the subtitle template.

[0011] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale. In the drawings: Figure 1 is a schematic diagram of a template configuration page according to an exemplary embodiment of the present disclosure; Figure 2 is a flowchart of a method for configuring a subtitle template according to an exemplary embodiment of the present disclosure; Figure 3is a schematic diagram of a template configuration page according to an exemplary embodiment of the present disclosure; Figure 4 is a schematic diagram of a template configuration page according to an exemplary embodiment of the present disclosure; Figure 5 is a schematic diagram of a template configuration page according to an exemplary embodiment of the present disclosure; Figure 6 is a schematic diagram of a template configuration page according to an exemplary embodiment of the present disclosure; Figure 7 is a schematic diagram of a template configuration page according to an exemplary embodiment of the present disclosure; Figure 8 is a structural block diagram of a subtitle template configuration device according to an exemplary embodiment of the present disclosure; Fig. 9 It is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

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

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

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

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

[0017] 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".

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

[0019] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0020] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.

[0021] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0022] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0023] At the same time, it is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.

[0024] Reference Figure 1 The template configuration page displays multiple subtitle configuration items for configuring subtitle styles in sequence, and displays the subtitle preview effect after the configuration. If there are many subtitle configuration items, the subtitle configuration items and preview subtitles need to be displayed across the screen. This means that if the displayed subtitle preview effect does not meet the user's requirements, the user needs to return to the previous subtitle configuration item to modify it. It may be necessary to repeatedly scroll the screen between the configured subtitle style and the subtitle preview effect to modify or confirm the operation in order to determine the final subtitle template. The operation is cumbersome and the configuration efficiency is low.

[0025] In view of this, the present disclosure provides a subtitle template configuration method, device, medium, electronic device and program product to solve the above technical problems.

[0026] It should be noted that the configuration method of the subtitle template provided in the present disclosure can be applied to application scenarios such as live broadcast scenes and video scenes that need to display subtitles, specifically including game live broadcast, sports live broadcast, news live broadcast, press conference live broadcast, education live broadcast, short video, long video and other application scenarios, and the present disclosure does not impose any restrictions on this.

[0027] The embodiments of the present disclosure are further explained below with reference to the accompanying drawings.

[0028] Figure 2 A configuration method of a subtitle template is shown according to an exemplary embodiment of the present disclosure, referring to Figure 2 , the configuration method of the subtitle template includes: S201: In response to a trigger operation for creating a subtitle template in a terminal device, a template configuration page is displayed, the template configuration page including a template configuration area and a subtitle preview area that are simultaneously displayed on a screen of the terminal device.

[0029] The template configuration area displays subtitle configuration items for configuring subtitle styles, and the subtitle preview area is used to display preview subtitles according to the configured subtitle configuration items.

[0030] For example, taking the live broadcast application scenario as an example, in response to a trigger operation for creating a subtitle template in a terminal device, a template configuration page is displayed, which may include: displaying a live broadcast configuration page, wherein the live broadcast configuration page is used for users to configure information of the live broadcast to be broadcast, and the live broadcast configuration page displays a creation control for creating a subtitle template; in response to a trigger operation on the creation control, the template configuration page is displayed.

[0031] For example, Figure 3 As shown, the template configuration page includes a template configuration area and a subtitle preview area that are simultaneously displayed on the screen of the terminal device. The template configuration area and the subtitle preview area can be distributed left and right, up and down. When the configuration items of the template configuration area exceed one screen, the template configuration area can be scrolled for configuration, and the subtitle preview area does not follow the scrolling. Alternatively, the subtitle preview area is displayed on the template configuration area in the form of a floating layer. When the template configuration area is scrolled, the subtitle preview area follows the scrolling, that is, the subtitle preview area is always displayed on the screen. It can be set specifically according to needs, and the present disclosure does not limit this.

[0032] S202: In response to a subtitle configuration operation in the template configuration area, determining a target subtitle style corresponding to the subtitle configuration operation, and synchronously displaying a preview subtitle corresponding to the target subtitle style in the subtitle preview area.

[0033] For example, continue to refer to Figure 3 In response to the subtitle configuration operation in the template configuration area, the corresponding preview subtitles are synchronously displayed in the subtitle preview area to achieve the effect of configuring is what you see. The preview subtitles can be default subtitles or custom subtitles entered in the input box, and the present disclosure does not limit this.

[0034] Further, in response to the confirmation operation for the target subtitle style, a target subtitle template corresponding to the target subtitle style is generated. Taking the live broadcast scene as an example, the target subtitle template can be selected when configuring the live subtitle, and then the live subtitle is displayed in the live broadcast screen according to the target subtitle template.

[0035] By adopting the above method, the template configuration area and the subtitle preview area are displayed on the screen of the terminal device at the same time, and the preview subtitles corresponding to the configured target subtitle style are synchronously displayed in the subtitle preview area, so that the subtitle display effect corresponding to the configured subtitle style can be intuitively displayed, which is convenient for users to further confirm and generate the final subtitle template, thereby improving the configuration efficiency of the subtitle template.

[0036] In a possible manner, the method further comprises: displaying a target scene schematic diagram of the to-be-added subtitles in the subtitle preview area. Synchronously displaying preview subtitles corresponding to the target subtitle style in the subtitle preview area comprises: synchronously displaying preview subtitles corresponding to the target subtitle style in the target scene schematic diagram.

[0037] For example, continue to refer to Figure 3 , a schematic diagram of the target scene to which the subtitles are to be added is displayed in the subtitle preview area, so that the preview subtitles can be synchronously displayed on the schematic diagram of the target scene, thereby intuitively showing the display effect of the subtitles in the actual scene.

[0038] In a possible manner, displaying a target scene schematic diagram to which subtitles are to be added in the subtitle preview area includes: in response to a scene graph upload operation in the template configuration page, displaying a target scene schematic diagram corresponding to the scene graph upload operation in the subtitle preview area, wherein the scene graph upload operation is used to upload a scene schematic diagram to which subtitles are to be added. Alternatively, displaying a preset scene schematic diagram in the subtitle preview area, and in response to a selection operation in the preset scene schematic diagram, displaying a target scene schematic diagram corresponding to the selection operation, wherein the selection operation is used to select a preset scene schematic diagram to which subtitles are to be added.

[0039] For example, continue to refer to Figure 3, you can upload a custom background image by triggering the "Upload Background Image" control, which can be a picture captured in an actual application scenario, and the present disclosure does not limit this. Alternatively, provide schematic diagrams of multiple preset scenarios, such as a schematic diagram of a sports live broadcast scenario, a schematic diagram of a game live broadcast scenario, etc., and provide a switching control for the user to switch. In this way, you can select a background image that is close to the actual application scenario according to your needs, and more intuitively show the display effect of subtitles in the actual scenario.

[0040] In a possible manner, the subtitle configuration items include margin configuration items for subtitle page margins, and the method further includes: in response to a margin configuration operation for the margin configuration items, determining margin information corresponding to the margin configuration operation, and marking a subtitle displayable area and a subtitle non-display area in a target scene schematic based on the margin information, wherein the display styles of the subtitle display area and the subtitle non-display area are different.

[0041] For example, the subtitle configuration items include margin configuration items for subtitle page margins, including left and right margins, bottom margins, top margins, etc. In response to the margin configuration operation for the margin configuration items, the subtitle displayable area and the subtitle non-display area are marked in the target scene schematic diagram, such as the gray part is the subtitle non-display area, and the area outside the gray part is the subtitle displayable area. This intuitively displays the subtitle display area, providing a reference for users to adjust the subtitle font size and the number of words per line.

[0042] In a possible manner, the template configuration area displays style options corresponding to preset subtitle styles, the preset subtitle styles include subtitle styles for different font sizes and / or different application scenarios, and in response to a subtitle configuration operation in the template configuration area, a target subtitle style corresponding to the subtitle configuration operation is determined, including: in response to a selection operation for a target style option in the style options, the preset subtitle style corresponding to the target style option is determined as the target subtitle style.

[0043] For example, the template configuration area displays style options corresponding to the preset subtitle styles, such as Figure 3 The subtitle styles for different font sizes shown in the figure and Figure 5 The subtitle styles for different application scenarios shown are subtitle styles under preset effects. Different preset subtitle styles will pre-set corresponding configuration information, such as page margins, font size, number of words per line, etc. In response to the selection operation of the target style option in the style options, the subtitle adjustment part will be filled with the corresponding preset configuration information.

[0044] For example, in response to a selection operation on a target style option in the style options, the subtitle displayable area and the subtitle non-display area may be marked in the target scene schematic diagram according to a preset page margin corresponding to the target style option.

[0045] It is worth noting that the pre-set configuration information of different preset subtitle styles can be determined based on experiments.

[0046] In a possible manner, the preset subtitle styles include subtitle styles for different font sizes, wherein the font size and subtitle position corresponding to each subtitle style are determined according to the screen resolution of the target device on which the subtitles are to be displayed, and the number of words per line corresponding to each subtitle style is determined according to the screen resolution of the target device and the language type corresponding to the subtitle style.

[0047] For example, refer to Figure 3 In terms of font size, the font size corresponding to small subtitles is smaller than the font size corresponding to medium subtitles, and the font size corresponding to medium subtitles is smaller than the font size corresponding to large subtitles. It is also possible to determine whether the subtitles to be displayed are displayed in a horizontal or vertical screen according to the screen resolution of the target device on which the subtitles are to be displayed. Therefore, different font sizes can be set based on different screen resolutions. For example, the font height under the horizontal screen can be set within the interval [screen height × first ratio, screen height × second ratio], and the font width under the vertical screen can be set within the interval [screen width × third ratio, screen width × fourth ratio]. The font sizes of small subtitles, medium subtitles, and large subtitles correspond to different font sizes in the interval. In this way, it is possible to avoid subtitles being too small to be recognized, and it is possible to avoid subtitles being too large to dominate the main image and affect the beauty of the picture. The font sizes corresponding to different preset subtitle styles can be set specifically according to needs. For example, a specific font size can be directly set, such as 8 for small subtitles and 12 for medium subtitles, etc. This is not limited in the present disclosure.

[0048] For example, the position of the subtitles is determined by the page margins, and different subtitle positions can also be set according to different screen resolutions. For example, the horizontal screen can set the left and right margins within the fifth ratio of the screen width × the screen height × the bottom margin within the sixth ratio. The vertical screen can set the left and right margins within the seventh ratio of the screen width × the screen height × the bottom margin within the eighth ratio, where the fifth ratio is greater than or equal to the seventh ratio, and the sixth ratio is less than or equal to the eighth ratio. The specific value can be determined according to demand, and the present disclosure does not limit this. This can avoid the subtitles being displayed at the bottom or on both sides, thereby improving the user's reading experience.

[0049] For example, the preset subtitle style can also set the corresponding number of characters per line, which can be determined according to the display direction of the target device and the language type corresponding to the subtitle style. For example, the number of characters per line of the vertical screen is smaller than that of the horizontal screen, and the number of characters per line of English characters (half-width characters) is larger than that of Chinese characters (full-width characters). The specific value can be determined according to demand, and the present disclosure does not impose any restrictions on this.

[0050] It should be noted that different preset subtitle styles will pre-set subtitle configuration information for different screen resolutions. For example, for the same preset subtitle style, the subtitle configuration information is adjusted according to the proportion under different screen resolutions, or for the same preset subtitle style, the subtitle configuration information under different screen resolutions is set respectively. In this way, the subtitles displayed on the user terminal can adapt to screens with different resolutions. When the user switches the screen resolution, the corresponding subtitle style can also be switched to display the subtitles.

[0051] In other possible implementations, the subtitle configuration items include a word count configuration item for the number of words per line and a font size configuration item for the subtitle font size, and the method further includes: determining an upper limit value for the number of subtitle words based on the font size configuration information of the font size configuration item and the subtitle displayable area; and displaying prompt information including the upper limit value for the number of subtitle words in response to a trigger operation on the word count configuration item.

[0052] For example, the width of a single font can be determined based on the font size, and then the upper limit of the number of words per line can be determined based on the width of the subtitle display area and the width of the single font. A prompt message including the upper limit can be displayed around the word count configuration item, or a prompt message can be displayed when the mouse is clicked or hovered over the word count configuration item, or the input value exceeding the upper limit can be restricted, and the present disclosure does not limit this. Among them, the upper limit includes the upper limit of full-width characters and the upper limit of half-width characters. Of course, a lower limit can also be set, which can be set according to needs.

[0053] In a possible manner, the preset subtitle styles include a first subtitle style for a game live broadcast scene and a second subtitle style for a sports live broadcast scene; wherein the subtitle position corresponding to the first subtitle style is set in a non-game panel area of ​​the live broadcast screen, and the subtitle position corresponding to the second subtitle style is set in the bottom area of ​​the live broadcast screen.

[0054] For example, corresponding preset subtitle styles can be set for specific application scenarios, such as news scenarios, game live broadcast scenarios, press conference scenarios, sports live broadcast scenarios, etc. Taking the sports live broadcast scenario as an example, you can refer to Figure 3 In the preview effect shown, the subtitles can be displayed at the bottom to avoid blocking the live sports scene. Similar subtitle effects for news scenes and press conference scenes can be referenced. Figure 3 The preview effect is shown in the figure, and the subtitles can choose relatively formal fonts and font colors. The subtitle effect of the game live scene can refer to Figure 5 The preview effect shown can set a certain bottom margin to avoid blocking the game panel, and the subtitles can choose relatively informal fonts and colors, such as two-dimensional fonts or colors. The specific requirements can be determined, and the present disclosure does not limit this.

[0055] Among other possible implementations, see Figure 6 The preset subtitle style can also set the subtitle effect, subtitle color and subtitle background color to ensure the contrast and visibility of the font in the screen. The specific setting can be determined according to the needs, and the present disclosure does not limit this.

[0056] In a possible manner, the method further includes: while determining the preset subtitle style corresponding to the target style option as the target subtitle style, updating the configuration information of the subtitle configuration item based on the target subtitle style; in response to a modification operation on the configuration information of the subtitle configuration item, determining a new target configuration style, and synchronously displaying the preview subtitles corresponding to the new target subtitle style in the subtitle preview area.

[0057] For example, after configuring the configuration information or selecting the target preset style, you can modify the configuration information, such as changing the font size, page margins, etc., and then determine the new target configuration style, and synchronously display the preview subtitles corresponding to the new target subtitle style in the subtitle preview area to achieve a what-you-see-is-configured effect.

[0058] In a possible manner, an allocation rate configuration item for configuring a screen resolution is displayed in a subtitle preview area, and preview subtitles corresponding to a target subtitle style are synchronously displayed in the subtitle preview area, including: in response to a resolution configuration operation for the allocation rate configuration item, determining a target resolution corresponding to the resolution configuration operation, and synchronously displaying preview subtitles corresponding to the target subtitle style in the subtitle preview area based on the target resolution.

[0059] For example, continue to refer to Figure 6 The subtitle preview area displays an allocation rate configuration item for configuring the screen resolution. This configuration item can be used to determine the target subtitle style. By switching different screen resolutions, the subtitle preview area can synchronously display preview subtitles under different screen resolutions. For example, the display effect can be adjusted in proportion under different screen resolutions. For example, the number of characters per line of the horizontal screen is 36, and the number of characters per line of the corresponding vertical screen is 13, and so on, so that the generated subtitle template can adapt to different screen resolutions.

[0060] In other possible implementations, the allocation rate configuration item may also be used as a template configuration item in the template configuration area, and different subtitle templates may be set for different screen resolutions. The specific setting may be based on demand, and the present disclosure does not impose any limitation on this.

[0061] By adopting the above method, by selecting the preset subtitle style, the final subtitle template can be obtained without making any adjustments or with minor adjustments, thus saving configuration time and improving subtitle configuration efficiency. Moreover, the preset subtitle style has been tested many times and can adapt to most screen images to ensure the comfort of subtitle reading.

[0062] In a possible manner, the subtitle configuration item includes a language configuration item for configuring a subtitle language type; in response to a subtitle configuration operation in a template configuration area, a target subtitle style corresponding to the subtitle configuration operation is determined, and preview subtitles corresponding to the target subtitle style are synchronously displayed in a subtitle preview area, including: in response to a target configuration operation for a language configuration item, a target language type corresponding to the target configuration operation is determined, and when the target language type includes at least two language types, preview subtitles corresponding one to one to the target language type are synchronously displayed in the subtitle preview area.

[0063] For example, the language type includes but is not limited to Chinese, English, Japanese, etc., which is determined according to the actual application scenario and requirements. Figure 7 As shown, when bilingual subtitles are selected, preview subtitles corresponding to the two language types are displayed synchronously in the subtitle preview area. Of course, subtitles of three or four language types can also be configured, and the present disclosure does not limit this. Thus, the subtitle effects displayed in multiple language types are intuitively displayed.

[0064] In a possible manner, the method further includes: displaying content input boxes in the subtitle preview area that are equal in number to the target language types, wherein a content input box is used for a user to input a test subtitle corresponding to a language type in the target language types. Synchronously displaying preview subtitles corresponding to the target language types in the subtitle preview area includes: responding to an input operation in the content input box, and synchronously displaying preview subtitles corresponding to the target language types in the subtitle preview area according to input content corresponding to the input operation.

[0065] For example, continue to refer to Figure 7 , the default preview subtitles corresponding to multiple language types can be displayed synchronously in the subtitle preview area, or the content input boxes equal to the number of target language types can be displayed in the subtitle preview area, and then the custom subtitles entered in the input boxes can be synchronously displayed in the subtitle preview area, thereby intuitively showing the subtitle effects displayed in multiple language types.

[0066] Among other possible implementations, Figure 3 As shown, in addition to the subtitle configuration items shown in the above embodiments, the subtitle configuration items also include associated transcoding configuration and hot word library. The associated transcoding configuration is used to set the application that needs to be transcoded and the data format after subtitle transcoding. The hot word library is used to set common words. For example, a transliterated word may appear in a variety of different translated subtitles, so the common words corresponding to the transliterated word can be configured, and when the same transliterated word appears, it is translated into the common word. In addition, subtitle configuration items can be added or deleted according to needs, which can be determined according to the actual application scenario, and the present disclosure does not limit this.

[0067] Based on the same concept, the embodiment of the present disclosure also provides a configuration device for a subtitle template, such as Figure 8 As shown, the subtitle template configuration device 800 includes: Display module 801, for displaying a template configuration page in response to a trigger operation for creating a subtitle template in a terminal device, wherein the template configuration page includes a template configuration area and a subtitle preview area displayed simultaneously on the screen of the terminal device, wherein the template configuration area displays subtitle configuration items for configuring subtitle styles, and the subtitle preview area is used to display preview subtitles according to the configured subtitle configuration items; The determination module 802 is used to determine a target subtitle style corresponding to the subtitle configuration operation in the template configuration area in response to the subtitle configuration operation, and synchronously display the preview subtitles corresponding to the target subtitle style in the subtitle preview area.

[0068] Optionally, the subtitle template configuration device 800 further includes a preview module, and the preview module is used to: Displaying a schematic diagram of a target scene to which subtitles are to be added in the subtitle preview area; The step of synchronously displaying the preview subtitles corresponding to the target subtitle style in the subtitle preview area includes: The preview subtitles corresponding to the target subtitle style are synchronously displayed in the target scene schematic diagram.

[0069] Optionally, the preview module is used to: In response to a scene graph upload operation in the template configuration page, displaying a target scene schematic diagram corresponding to the scene graph upload operation in the subtitle preview area, wherein the scene graph upload operation is used to upload a scene schematic diagram to which subtitles are to be added; or Displaying a schematic diagram of a preset scene in the subtitle preview area; In response to a selection operation in the preset scene schematic diagram, a target scene schematic diagram corresponding to the selection operation is displayed, wherein the selection operation is used to select a preset scene schematic diagram to which subtitles are to be added.

[0070] Optionally, the subtitle configuration item includes a page margin configuration item for a subtitle page margin, and the subtitle template configuration device 800 further includes a marking module, and the marking module is used to: In response to a margin configuration operation for the margin configuration item, the margin information corresponding to the margin configuration operation is determined, and based on the margin information, a subtitle displayable area and a subtitle non-display area are marked in the target scene schematic diagram, wherein the display style of the subtitle display area is different from that of the subtitle non-display area.

[0071] Optionally, the template configuration area displays style options corresponding to preset subtitle styles, and the preset subtitle styles include subtitle styles for different font sizes and / or different application scenarios. The determination module 802 is used to: In response to a selection operation on a target style option among the style options, a preset subtitle style corresponding to the target style option is determined as the target subtitle style.

[0072] Optionally, the preset subtitle style includes a first subtitle style for a game live broadcast scene and a second subtitle style for a sports live broadcast scene; Among them, the subtitle position corresponding to the first subtitle style is set in the non-game panel area of ​​the live broadcast screen, and the subtitle position corresponding to the second subtitle style is set in the bottom area of ​​the live broadcast screen.

[0073] Optionally, the preset subtitle styles include subtitle styles for different font sizes, wherein the font size and subtitle position corresponding to each subtitle style are determined according to the screen resolution of the target device on which the subtitles are to be displayed, and the number of characters per line corresponding to each subtitle style is determined according to the screen resolution of the target device and the language type corresponding to the subtitle style.

[0074] Optionally, the subtitle template configuration device 800 further includes an updating module, and the updating module is used to: While determining the preset subtitle style corresponding to the target style option as the target subtitle style, updating the configuration information of the subtitle configuration item based on the target subtitle style; In response to a modification operation on the configuration information of the subtitle configuration item, a new target configuration style is determined, and preview subtitles corresponding to the new target subtitle style are synchronously displayed in the subtitle preview area.

[0075] Optionally, the subtitle preview area displays an allocation rate configuration item for configuring screen resolution, and the determination module 802 is used to: In response to a resolution configuration operation for the allocation rate configuration item, a target resolution corresponding to the resolution configuration operation is determined, and preview subtitles corresponding to the target subtitle style are synchronously displayed in the subtitle preview area based on the target resolution.

[0076] Optionally, the subtitle configuration item includes a language configuration item for configuring a subtitle language type; The determining module 802 is used for: In response to a target configuration operation for the language configuration item, a target language type corresponding to the target configuration operation is determined, and when the target language type includes at least two language types, preview subtitles corresponding one to one to the target language types are synchronously displayed in the subtitle preview area.

[0077] Optionally, the subtitle template configuration device 800 further includes an input module, and the input module is used to: Displaying content input boxes in the subtitle preview area, the number of which is equal to the number of the target language types, wherein one of the content input boxes is used for a user to input a test subtitle corresponding to a language type in the target language type; The determining module 802 is used for: In response to an input operation in the content input box, according to the input content corresponding to the input operation, preview subtitles corresponding to the target language type are synchronously displayed in the subtitle preview area.

[0078] Based on the same concept, an embodiment of the present disclosure further provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processing device, the steps of the configuration method of the subtitle template are implemented.

[0079] Based on the same concept, the present disclosure also provides an electronic device, which may include: a storage device having a computer program stored thereon; The processing device is used to execute the computer program in the storage device to implement the steps of the above-mentioned subtitle template configuration method.

[0080] Based on the same concept, an embodiment of the present disclosure further provides a computer program product, including a computer program, which implements the steps of the above-mentioned subtitle template configuration method when executed by a processor.

[0081] Reference below Fig. 9 , which shows a schematic diagram of the structure of an electronic device 900 suitable for implementing the embodiment of the present disclosure. The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig. 9 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.

[0082] like Fig. 9As shown, the electronic device 900 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage device 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the electronic device 900 are also stored. The processing device 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0083] Typically, the following devices may be connected to the I / O interface 905: an input device 906 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 907 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 908 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 909. The communication device 909 may allow the electronic device 900 to communicate with other devices wirelessly or by wire to exchange data. Although Fig. 9 The electronic device 900 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.

[0084] 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 909, or installed from a storage device 908, or installed from a ROM 902. When the computer program is executed by the processing device 901, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0085] It should be noted that the computer-readable medium mentioned above in the present disclosure 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 can 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, which carries a computer-readable program code. 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. Computer readable signal media may also be any computer readable medium other than computer readable storage media, 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 appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0086] In some embodiments, any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol) can be used for communication, and can 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.

[0087] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0088] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: in response to a trigger operation for creating a subtitle template in a terminal device, displays a template configuration page, the template configuration page includes a template configuration area and a subtitle preview area displayed simultaneously on the screen of the terminal device, the template configuration area displays subtitle configuration items for configuring subtitle styles, and the subtitle preview area is used to display preview subtitles according to the configured subtitle configuration items; in response to a subtitle configuration operation in the template configuration area, determines a target subtitle style corresponding to the subtitle configuration operation, and synchronously displays preview subtitles corresponding to the target subtitle style in the subtitle preview area.

[0089] 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 the case of 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).

[0090] 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 a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0091] The modules involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a module does not, in some cases, limit the module itself.

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

[0093] 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 device, 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.

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

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

[0096] Although the subject matter has been described in language specific to structural features and / or method logic 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. Regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.

Claims

1. A method for configuring a subtitle template, characterized in that: The method comprises: In response to a trigger operation for creating a subtitle template in a terminal device, a template configuration page is displayed, wherein the template configuration page includes a template configuration area and a subtitle preview area displayed simultaneously on a screen of the terminal device, the template configuration area displays subtitle configuration items for configuring a subtitle style, and the subtitle preview area is used to display preview subtitles according to the configured subtitle configuration items; In response to a subtitle configuration operation in the template configuration area, a target subtitle style corresponding to the subtitle configuration operation is determined, and a preview subtitle corresponding to the target subtitle style is synchronously displayed in the subtitle preview area.

2. The method for configuring a subtitle template according to claim 1, characterized in that: The method further comprises: Displaying a schematic diagram of a target scene to which subtitles are to be added in the subtitle preview area; The step of synchronously displaying the preview subtitles corresponding to the target subtitle style in the subtitle preview area includes: The preview subtitles corresponding to the target subtitle style are synchronously displayed in the target scene schematic diagram.

3. The method for configuring a subtitle template according to claim 2, characterized in that: The displaying of the target scene schematic diagram to be added with subtitles in the subtitle preview area includes: In response to a scene graph upload operation in the template configuration page, displaying a target scene schematic diagram corresponding to the scene graph upload operation in the subtitle preview area, wherein the scene graph upload operation is used to upload a scene schematic diagram to which subtitles are to be added; or Displaying a schematic diagram of a preset scene in the subtitle preview area; In response to a selection operation in the preset scene schematic diagram, a target scene schematic diagram corresponding to the selection operation is displayed, wherein the selection operation is used to select a preset scene schematic diagram to which subtitles are to be added.

4. The method for configuring a subtitle template according to claim 2, characterized in that: The subtitle configuration item includes a page margin configuration item for a subtitle page margin, and the method further includes: In response to a margin configuration operation for the margin configuration item, the margin information corresponding to the margin configuration operation is determined, and based on the margin information, a subtitle displayable area and a subtitle non-display area are marked in the target scene schematic diagram, wherein the display style of the subtitle display area is different from that of the subtitle non-display area.

5. The method for configuring a subtitle template according to any one of claims 1 to 4, characterized in that: The template configuration area displays style options corresponding to preset subtitle styles, the preset subtitle styles include subtitle styles for different font sizes and / or different application scenarios, and in response to a subtitle configuration operation in the template configuration area, determining a target subtitle style corresponding to the subtitle configuration operation includes: In response to a selection operation on a target style option among the style options, a preset subtitle style corresponding to the target style option is determined as the target subtitle style.

6. The method for configuring a subtitle template according to claim 5, characterized in that: The preset subtitle styles include a first subtitle style for a game live broadcast scene and a second subtitle style for a sports live broadcast scene; Among them, the subtitle position corresponding to the first subtitle style is set in the non-game panel area of ​​the live broadcast screen, and the subtitle position corresponding to the second subtitle style is set in the bottom area of ​​the live broadcast screen.

7. The method for configuring a subtitle template according to claim 5, characterized in that: The preset subtitle styles include subtitle styles for different font sizes, wherein the font size and subtitle position corresponding to each subtitle style are determined according to the screen resolution of the target device to display the subtitles, and the number of words per line corresponding to each subtitle style is determined according to the screen resolution of the target device and the language type corresponding to the subtitle style.

8. The method for configuring a subtitle template according to claim 5, characterized in that: The method further comprises: While determining the preset subtitle style corresponding to the target style option as the target subtitle style, updating the configuration information of the subtitle configuration item based on the target subtitle style; In response to a modification operation on the configuration information of the subtitle configuration item, a new target configuration style is determined, and preview subtitles corresponding to the new target subtitle style are synchronously displayed in the subtitle preview area.

9. The method for configuring a subtitle template according to any one of claims 1 to 4, characterized in that: The subtitle preview area displays an allocation rate configuration item for configuring the screen resolution, and the synchronously displaying the preview subtitles corresponding to the target subtitle style in the subtitle preview area includes: In response to a resolution configuration operation for the allocation rate configuration item, a target resolution corresponding to the resolution configuration operation is determined, and preview subtitles corresponding to the target subtitle style are synchronously displayed in the subtitle preview area based on the target resolution.

10. The method for configuring a subtitle template according to any one of claims 1 to 4, characterized in that: The subtitle configuration items include language configuration items for configuring subtitle language types; The method of determining a target subtitle style corresponding to the subtitle configuration operation in response to the subtitle configuration operation in the template configuration area, and synchronously displaying a preview subtitle corresponding to the target subtitle style in the subtitle preview area includes: In response to a target configuration operation for the language configuration item, a target language type corresponding to the target configuration operation is determined, and when the target language type includes at least two language types, preview subtitles corresponding one to one to the target language types are synchronously displayed in the subtitle preview area.

11. The method for configuring a subtitle template according to claim 10, characterized in that: The method further comprises: Displaying content input boxes in the subtitle preview area, the number of which is equal to the number of the target language types, wherein one of the content input boxes is used for a user to input a test subtitle corresponding to a language type in the target language type; The step of synchronously displaying the preview subtitles corresponding to the target language type in the subtitle preview area includes: In response to an input operation in the content input box, according to the input content corresponding to the input operation, preview subtitles corresponding to the target language type are synchronously displayed in the subtitle preview area.

12. A subtitle template configuration device, characterized in that: The device comprises: A display module, configured to display a template configuration page in response to a trigger operation for creating a subtitle template in a terminal device, wherein the template configuration page includes a template configuration area and a subtitle preview area displayed simultaneously on a screen of the terminal device, wherein the template configuration area displays subtitle configuration items for configuring a subtitle style, and the subtitle preview area is used to display preview subtitles according to the configured subtitle configuration items; The determination module is used to determine a target subtitle style corresponding to the subtitle configuration operation in the template configuration area in response to the subtitle configuration operation, and synchronously display the preview subtitles corresponding to the target subtitle style in the subtitle preview area.

13. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processing device, the steps of the method according to any one of claims 1 to 11 are implemented.

14. An electronic device, characterized in that: include: a storage device having a computer program stored thereon; A processing device, configured to execute the computer program in the storage device to implement the steps of the method according to any one of claims 1 to 11.

15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 11 are implemented.