Prompt text display method, device, electronic device and storage medium
By collecting and identifying content information during the speech process of the target object, and displaying matching prompt text fragments based on the identification information, the problem of inconsistent scrolling progress and narration progress in the prior art is solved, and the prompt effect and accuracy are improved.
Patent Information
- Application Number
- CN202210917399.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-01
- Publication Date
- 2025-04-08
- Estimated Expiration
- 2042-08-01
AI Technical Summary
In the prior art, in video recording scenarios, the scrolling progress of the text clip is inconsistent with the progress actually told by the user, which affects the prompt effect of the prompt text.
By collecting content information generated during the target object's speech, identifying it to obtain identification information, indicating the speech progress of the target object, and displaying the prompt text based on the identification information, so that the highlighted prompt text fragment matches the speech progress of the target object.
Ensure that the prompt text fragment matches the user's actual story progress, improving the prompt effect and accuracy of the prompt text.
Smart Images

Figure CN115361481B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a prompt text display method, device, electronic device and storage medium. Background Art
[0002] With the widespread popularity of the Internet and the increasing demand for communication, the teleprompter function is widely used in various scenarios. Take the video recording scenario as an example. When a user wants to record a video, he can turn on the teleprompter function on the electronic device. Then the electronic device will display the prompt text during the video recording process and scroll the text segments in the prompt text at a uniform speed so that the user can view the text segment that needs to be narrated at the moment.
[0003] However, with the above method, it is easy to cause the scrolling progress of the text segment to be inconsistent with the progress of the user's actual narration, which affects the prompt effect of the prompt text. Summary of the invention
[0004] The present disclosure provides a prompt text display method, device, electronic device and storage medium, which can improve the prompt effect of the prompt text. The technical solution of the present disclosure is as follows:
[0005] According to a first aspect of an embodiment of the present disclosure, a prompt text display method is provided, including:
[0006] Collect content information generated by the target object during the speech;
[0007] Identify the content information to obtain identification information, where the identification information is used to indicate the speaking progress of the target object;
[0008] The prompt text is displayed based on the identification information so that the highlighted prompt text segment in the prompt text matches the speaking progress of the target object.
[0009] In some embodiments, the collecting of content information generated during the target object's speech includes:
[0010] Filming the target object while the target object is speaking to obtain a video clip;
[0011] The identifying the content information to obtain identification information includes:
[0012] Lip reading recognition is performed on the video segment to obtain a text segment corresponding to the video segment.
[0013] In some embodiments, the collecting of content information generated during the target object's speech includes:
[0014] Collecting speech clips generated by the target object during speaking;
[0015] The identifying the content information to obtain identification information includes:
[0016] Perform speech recognition on the speech segment to obtain a text segment corresponding to the speech segment.
[0017] In some embodiments, the identification information is a text segment spoken by the target object, and the displaying of the prompt text based on the identification information so that the highlighted prompt text segment in the prompt text matches the speaking progress of the target object includes:
[0018] Based on the text segment, determining a prompt text segment matching the text segment from the prompt text;
[0019] When displaying the prompt text, the prompt text segment is highlighted.
[0020] In some embodiments, when displaying the prompt text, highlighting the prompt text segment includes:
[0021] The prompt text segment is displayed using a target display style, where the target display style is different from the display styles of other text segments in the prompt text; or
[0022] Each text segment in the prompt text is scrolled so that the prompt text segment is displayed at a focus position in the current display interface.
[0023] In some embodiments, before collecting the content information generated by the target object during the speech, the method further includes:
[0024] Based on the prompt interface, obtaining the input prompt text;
[0025] The step of displaying the prompt text based on the identification information so that the highlighted prompt text segment in the prompt text matches the speaking progress of the target object includes:
[0026] Based on the identification information, the prompt text is displayed in the prompt interface so that the highlighted prompt text segment in the prompt text matches the speaking progress of the target object.
[0027] In some embodiments, the method further comprises:
[0028] In response to a triggering operation on a prompt entry in the current interface, the prompt interface is displayed.
[0029] In some embodiments, the current interface is a video shooting interface, and the method further includes:
[0030] Video shooting is performed during the process of displaying the prompt text in the prompt interface.
[0031] In some embodiments, the prompting interface includes a mode option, the mode option is used to turn on a uniform speed mode or a non-uniform speed mode, the uniform speed mode is used to uniformly scroll each text segment in the prompt text, and the non-uniform speed mode is used to display the prompt text based on the speaking progress of the target object; the method further includes:
[0032] When the non-uniform speed mode is enabled based on the mode option, the step of collecting content information generated during the target object's speech is performed.
[0033] In some embodiments, the method further comprises:
[0034] When the uniform speed mode is turned on based on the mode option, each text segment in the prompt text is scrolled and displayed at a preset speed.
[0035] According to a second aspect of an embodiment of the present disclosure, a prompt text display device is provided, the device comprising:
[0036] A collection unit, configured to collect content information generated during the target object's speech;
[0037] an identification unit, configured to identify the content information to obtain identification information, wherein the identification information is used to indicate the speaking progress of the target object;
[0038] The display unit is configured to display the prompt text based on the identification information so that the highlighted prompt text segment in the prompt text matches the speaking progress of the target object.
[0039] In some embodiments, the acquisition unit includes:
[0040] a shooting subunit, configured to shoot the target object during the target object's speech to obtain a video clip;
[0041] The identification unit comprises:
[0042] The lip reading recognition subunit is configured to perform lip reading recognition on the video segment to obtain a text segment corresponding to the video segment.
[0043] In some embodiments, the acquisition unit includes:
[0044] A collection subunit is configured to collect speech segments generated during the target object's speech;
[0045] The identification unit comprises:
[0046] The speech recognition subunit is configured to perform speech recognition on the speech segment to obtain a text segment corresponding to the speech segment.
[0047] In some embodiments, the identification information is a text segment spoken by the target object, and the display unit includes:
[0048] a determination subunit configured to determine, based on the text segment, from the prompt text a prompt text segment that matches the text segment;
[0049] The display subunit is configured to highlight the prompt text segment when displaying the prompt text.
[0050] In some embodiments, the display subunit is configured as follows:
[0051] The prompt text segment is displayed using a target display style, where the target display style is different from the display styles of other text segments in the prompt text; or
[0052] Each text segment in the prompt text is scrolled so that the prompt text segment is displayed at a focus position in the current display interface.
[0053] In some embodiments, the apparatus further comprises:
[0054] An acquisition unit, configured to acquire the inputted prompt text based on the prompt interface;
[0055] The display unit is configured as follows:
[0056] Based on the identification information, the prompt text is displayed in the prompt interface so that the highlighted prompt text segment in the prompt text matches the speaking progress of the target object.
[0057] In some embodiments, the apparatus further comprises:
[0058] The prompt interface display unit is configured to display the prompt interface in response to a trigger operation on a prompt entry in the current interface.
[0059] In some embodiments, the current interface is a video shooting interface, and the device further includes:
[0060] The shooting unit is configured to shoot a video during the process of displaying the prompt text in the prompt interface.
[0061] In some embodiments, the prompt interface includes a mode option, and the mode option is used to turn on a uniform speed mode or a non-uniform speed mode. The uniform speed mode is used to scroll each text segment in the prompt text at a uniform speed, and the non-uniform speed mode is used to display the prompt text based on the speaking progress of the target object; the collection unit is configured to execute the step of collecting content information generated during the target object's speech when the non-uniform speed mode is turned on based on the mode option.
[0062] In some embodiments, the display unit is configured to scroll and display each text segment in the prompt text at a preset speed when the uniform speed mode is turned on based on the mode option.
[0063] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, the electronic device comprising:
[0064] processor;
[0065] a memory for storing instructions executable by the processor;
[0066] Wherein, the processor is configured to execute the instructions to implement the prompt text display method as described in the above aspect.
[0067] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the prompt text display method as described in the above aspects.
[0068] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the prompt text display method as described in the above aspects is implemented.
[0069] In the disclosed embodiment, the content information generated during the target object's speech is collected, the content information is identified, identification information for indicating the target object's speech progress is obtained, and then the prompt text is displayed based on the identification information. Even if the target object's speech speed changes, the identification information can accurately indicate the target object's speech progress, so it can be ensured that the highlighted prompt text segment is a text segment that matches the target object's speech progress, thereby improving accuracy and thus improving the prompt effect.
[0070] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0071] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0072] Figure 1 is a schematic diagram of an implementation environment according to an exemplary embodiment;
[0073] Figure 2 is a flow chart of a prompt text display method according to an exemplary embodiment;
[0074] Figure 3 is a flowchart of another prompt text display method according to an exemplary embodiment;
[0075] Figure 4 is a flowchart of another prompt text display method according to an exemplary embodiment;
[0076] Figure 5 is a flowchart of another prompt text display method according to an exemplary embodiment;
[0077] Figure 6 is a schematic diagram of a video shooting interface according to an exemplary embodiment;
[0078] Figure 7 is a schematic diagram showing a countdown duration according to an exemplary embodiment;
[0079] Figure 8 is a schematic diagram of a setting interface according to an exemplary embodiment;
[0080] Fig. 9 is a schematic diagram of another video shooting interface according to an exemplary embodiment;
[0081] Fig.10 is a schematic diagram showing a shooting completion interface according to an exemplary embodiment;
[0082] Fig.11 is a schematic diagram of a video processing interface according to an exemplary embodiment;
[0083] Fig.12 is a flowchart of another prompt text display method according to an exemplary embodiment;
[0084] Fig.13 is a structural block diagram of a prompt text display device according to an exemplary embodiment;
[0085] Fig.14 The present invention is a structural block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0086] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0087] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0088] The user information involved in the present disclosure may be information authorized by the user or fully authorized by all parties.
[0089] An embodiment of the present disclosure provides a prompt text display method, which is executed by an electronic device. The electronic device can display a prompt text when a target object is speaking, prompting the target object what to say.
[0090] In some embodiments, the electronic device is a laptop, a mobile phone, a tablet computer or other electronic device. The electronic device is installed with a target application, which can be configured with functions of collecting information and identifying information, can collect at least one type of information such as video information or voice information in the current scene, and identify the collected information. It is also configured with a prompting function, which can display prompt text. In addition, the target application can also be configured with a video shooting function, a video sharing function, etc.
[0091] In other embodiments, the electronic device may include a control device and a teleprompter, wherein the control device may be a laptop computer, a mobile phone, a tablet computer or other devices, and the teleprompter is a device for displaying text.
[0092] Figure 1 It is a schematic diagram of an implementation environment according to an exemplary embodiment. The implementation environment includes a control device 101 and a teleprompter 102. The control device 101 and the teleprompter 102 are connected via a wired or wireless network.
[0093] The control device 101 may be a laptop computer, a mobile phone, a tablet computer or other devices, but is not limited thereto. The teleprompter 102 is provided with a display screen, and prompt text may be displayed on the display screen.
[0094] In the disclosed embodiment, the control device 101 may collect at least one type of information such as video information or voice information, and after identifying the collected information, may control the teleprompter 102 to display a prompt text.
[0095] In some embodiments, the control device 101 is installed with a target application, and the target application can be configured with a function of collecting information, and can collect at least one type of information such as video information or voice information in the current scene, and recognize the collected information. And the control device 101 controls the teleprompter 102 through the target application. In addition, the target application can also be configured with a video shooting function, a video sharing function, etc.
[0096] Figure 2 is a flowchart of a prompt text display method according to an exemplary embodiment. Figure 2 As shown, the method is executed by an electronic device and includes the following steps.
[0097] In step 201, the electronic device collects content information generated during the target object's speech.
[0098] In the disclosed embodiment, during the target object's speech, the electronic device can display a prompt text based on the target object's speech progress to prompt the target object what to say, that is, to realize the prompting function. The target object's speech progress can be determined by the content information generated during the target object's speech. Therefore, the electronic device will first collect the content information generated during the target object's speech.
[0099] The electronic device is located in a scene where the target object is located. When the target object is speaking, the electronic device can collect content information, where the content information can be a video clip containing a picture of the target object speaking, or the content information can be a voice clip containing the sound made by the target object when speaking.
[0100] In step 202, the electronic device identifies the content information and obtains identification information.
[0101] Among them, the identification information is used to indicate the speaking progress of the target object, and can be a text segment included in the content information, or can be the position of the text segment included in the content information in the prompt text, etc. The embodiment of the present disclosure does not limit the specific form of the identification information.
[0102] In step 203, the electronic device displays the prompt text based on the identification information so that the highlighted prompt text segment in the prompt text matches the speaking progress of the target object.
[0103] In the embodiment of the present disclosure, the prompt text is used to prompt the target object what to say, and the prompt text can be pre-acquired by the electronic device. The prompt text includes at least one text segment, for example, the prompt text includes multiple lines of text, each line of text is a text segment, or the prompt text includes multiple paragraphs of text, each paragraph of text is a text segment.
[0104] After obtaining the identification information, the electronic device can determine a prompt text segment based on the identification information, and the prompt text segment is a text segment that matches the target object's speaking progress, that is, a text segment corresponding to the content currently being spoken by the target object. By highlighting the prompt text segment, it is convenient for the target object to quickly find the prompt text segment in the prompt text, thereby providing a timely and effective reminder to the target object.
[0105] Among them, highlighting includes highlighting, bolding, changing font color, increasing font size and other methods.
[0106] Taking into account the different speaking speeds of different subjects, even the same subject may have different speaking speeds when speaking different contents, the method of uniformly scrolling the prompt text will result in the scrolling speed being inconsistent with the speaking speed of the subject. The method provided by the disclosed embodiment no longer adopts the method of uniformly scrolling the prompt text, but instead collects the content information generated during the target subject's speech, identifies the content information, obtains identification information for indicating the target subject's speaking progress, and then displays the prompt text based on the identification information. Even if the target subject's speaking speed changes, the identification information can accurately indicate the target subject's speaking progress, and thus can ensure that the highlighted prompt text segment is a text segment that matches the target subject's speaking progress, thereby improving accuracy and thus improving the prompting effect.
[0107] Figure 3 is a flowchart of another prompt text display method according to an exemplary embodiment. Figure 3 As shown, the method is executed by an electronic device, and the method takes the collected content information as a video clip as an example to illustrate the process of displaying a prompt text based on the video clip. The method includes the following steps.
[0108] In step 301, the electronic device films the target object while the target object is speaking to obtain a video clip.
[0109] In the disclosed embodiment, during the target object's speech, the electronic device can display a prompt text based on the target object's speech progress to prompt the target object what to say, that is, to realize the prompting function. The target object's speech progress can be determined by the content information generated during the target object's speech. Therefore, the electronic device will first collect the content information generated during the target object's speech.
[0110] In the disclosed embodiment, taking the collected content information as a video clip as an example, an electronic device is placed around a target object so that the target object is within the shooting range of the electronic device. The electronic device shoots the target object while the target object is speaking. The obtained video clip may include video images of the target object speaking. Subsequently, the speaking progress of the target object may be determined by identifying the video clip.
[0111] In step 302, the electronic device performs lip reading recognition on the video segment to obtain a text segment corresponding to the video segment.
[0112] After collecting a video clip recording the target object's speaking process, the electronic device performs lip reading recognition on the video clip, for example, recognizes the characteristics of the target object's mouth shape changes during the speaking process, and obtains a text clip corresponding to the video clip. The text clip is the content spoken by the target object in the video clip. Therefore, the text clip is the identification information obtained by recognizing the video clip, which can be used to indicate the speaking progress of the target object.
[0113] In some embodiments, the electronic device recognizes the face of the target object from the video clip, extracts the target object's lip shape change features, and then inputs the lip shape change features into a lip reading recognition model to obtain a text clip corresponding to the lip shape change features.
[0114] In step 303, the electronic device determines, based on the text segment, from the prompt text a prompt text segment that matches the text segment.
[0115] After the electronic device recognizes the text segment corresponding to the video segment, it needs to match the text segment with each text segment in the prompt text to obtain the prompt text segment in the prompt text that matches the text segment.
[0116] In some embodiments, the keyword features of the text segment and the keyword features of each text segment in the prompt text are obtained, wherein the keyword features of any text segment represent the keywords included in the text segment. Therefore, the degree of overlap between the keyword features of each text segment in the prompt text and the keyword features of the text segment is determined, and a text segment in the prompt text with the highest degree of overlap is determined as the prompt text segment matching the text segment.
[0117] If there are multiple text segments in the prompt text that have the highest overlap with the text segment, the text segment that is in the previous order and has not been marked as displayed is preferentially selected. When a text segment is highlighted, the electronic device will mark the text segment as displayed to ensure that the displayed text segment will not be matched during subsequent text matching, which also reduces the complexity of text matching.
[0118] In step 304, the electronic device highlights the prompt text segment when displaying the prompt text.
[0119] In some embodiments, after the electronic device determines the prompt text segment, it also determines the position of the prompt text segment in the prompt text. Subsequently, based on the position, the text segment at the position can be highlighted, and the target object can speak with reference to the highlighted prompt text segment.
[0120] Optionally, the position can be the line number or paragraph number of the prompt text fragment in the prompt text. For example, if the position is a line number, then based on the line number, the entire line where the prompt text fragment is located is highlighted, or if the position is a paragraph number, then based on the paragraph number, the entire paragraph where the prompt text fragment is located is highlighted.
[0121] In some embodiments, highlighting the prompt text segment includes:
[0122] The first method: using a target display style to display the prompt text fragment, the target display style is different from the display style of other text fragments in the prompt text.
[0123] Among them, the target display styles include: highlighting, bolding, changing font color, changing font size, etc. The above target display styles can make the prompt text segment different from other text segments, making the prompt text segment more eye-catching in the prompt text and having a better prompt effect.
[0124] The second method is to scroll each text segment in the prompt text so that the prompt text segment is displayed at a focus position in the current display interface.
[0125] Among them, the current display interface is set with a focus position, which is located at the top or middle position of the current display interface. Compared with other positions, this focus position is more likely to attract the attention of the target object. Each time the prompt text is displayed, the prompt text segment determined this time can be displayed at the focus position in the current display interface, so that the target object can view the content to be said. As the target object's speech content changes, after a new prompt text segment is determined next time, the new prompt text segment will also be displayed at the focus position, and the corresponding originally displayed prompt text segment and other adjacent text segments will all scroll up. Therefore, from an overall perspective, each text segment in the prompt text will scroll and display, and the scrolling progress will match the target object's speaking progress.
[0126] Among them, the focus position can be a row in the current display interface, used to display the row where the prompt text fragment is located, or the focus position is used to display the paragraph where the prompt text fragment is located. The size of the focus position can change with the number of rows in the paragraph where the prompt text fragment is located.
[0127] The method provided by the embodiment of the present disclosure no longer adopts the method of uniformly scrolling the prompt text, but collects the video clips generated during the target object's speech, and then performs lip reading recognition on the video clips to obtain a text clip used to represent the target object's speaking progress, and determines the prompt text clip that matches the text clip from the prompt text and highlights the prompt text clip, making the prompt text clip more eye-catching and convenient for the target object to view the content that needs to be said. Even if the target object's speaking speed changes, the prompt text clip is also the content that the target object is saying, so it can ensure that the highlighted prompt text clip is the text clip that matches the target object's speaking progress, which improves accuracy and thus improves the prompt effect.
[0128] The method provided by the embodiment of the present disclosure can, after identifying the text segment spoken by the target object, determine the prompt text segment that matches the text segment from the prompt text and highlight the prompt text segment. Therefore, the text segment can be used as the minimum display unit to ensure that the highlighted prompt text segment is a text segment that matches the speaking progress of the target object, thereby improving accuracy and thus improving the prompting effect.
[0129] The method provided by the embodiment of the present disclosure can highlight the prompt text segment, and can use the target display style to display the prompt text segment, so that the prompt text segment is displayed in a different style from other text segments in the prompt text; each text segment in the prompt text can also be scrolled to display the prompt text segment at the focus position in the current display interface. The above methods for highlighting the prompt text segment can make the prompt text segment more eye-catching, making it easier for the target object to view the content that needs to be said.
[0130] Figure 4 is a flowchart of another prompt text display method according to an exemplary embodiment. Figure 4 As shown, the method is executed by an electronic device, and the method takes the collected content information as a voice segment as an example to illustrate the process of displaying a prompt text based on the voice segment. The method includes the following steps.
[0131] In step 401, the electronic device collects voice clips generated during the target object's speech.
[0132] In the disclosed embodiment, during the target object's speech, the electronic device can display a prompt text based on the target object's speech progress to prompt the target object what to say, that is, to realize the prompting function. The target object's speech progress can be determined by the content information generated during the target object's speech. Therefore, the electronic device will first collect the content information generated during the target object's speech.
[0133] The disclosed embodiment takes the collected content information as a voice segment as an example, and places an electronic device around a target object so that the target object is within the collection range of the electronic device. The electronic device collects the sound of the target object speaking during the target object's speaking process. The obtained voice segment may include the sound of the target object speaking. Subsequently, the speaking progress of the target object may be determined by recognizing the voice segment.
[0134] In step 402, the electronic device performs speech recognition on the speech segment to obtain a text segment corresponding to the speech segment.
[0135] After collecting the voice clip recording the target object's speaking process, the electronic device performs voice recognition on the voice clip to obtain a text clip corresponding to the voice clip, and the text clip is the content contained in the voice clip. Therefore, the text clip is the identification information obtained by recognizing the voice clip, which can be used to indicate the target object's speaking progress.
[0136] In step 403, the electronic device determines a prompt text segment that matches the text segment from the prompt text based on the text segment.
[0137] In step 404, the electronic device highlights the prompt text segment when displaying the prompt text.
[0138] Steps 403-404 are similar to the above steps 303-304 and are not described again here.
[0139] The method provided by the embodiment of the present disclosure no longer adopts the method of uniformly scrolling the prompt text, but collects the voice fragments generated during the target object's speech, and then performs speech recognition on the voice fragments to obtain a text fragment used to represent the target object's speaking progress, and determines the prompt text fragment that matches the text fragment from the prompt text and highlights the prompt text fragment, making the prompt text fragment more eye-catching and convenient for the target object to view the content that needs to be said. Even if the target object's speaking speed changes, the prompt text fragment is also the content that the target object is saying, so it can be ensured that the highlighted prompt text fragment is the text fragment that matches the target object's speaking progress, which improves accuracy and thus improves the prompt effect.
[0140] Figure 5is a flowchart of another prompt text display method according to an exemplary embodiment. Figure 5 As shown, the method is executed by an electronic device and includes the following steps.
[0141] In step 501, the electronic device displays a prompt interface in response to a triggering operation on a prompt entry in the current interface.
[0142] In the disclosed embodiment, a prompting entry is provided in the current interface displayed by the electronic device, and the prompting entry is used to trigger the prompting function. Therefore, the electronic device can display the prompting interface in response to the triggering operation of the prompting entry, thereby displaying the prompt text in the prompting interface.
[0143] Among them, the current interface displayed by the electronic device can be a home page in the target application, or a video shooting interface, or an image shooting interface, etc.
[0144] In some embodiments, the disclosed embodiments are applied to a video shooting scenario, where the target object needs to use an electronic device to shoot a video, and during the shooting process, the target object needs to check the prompt text to remind himself what he needs to say. In this scenario, the current interface displayed by the electronic device is a video shooting interface, and the video shooting interface displays a prompt entry, which is used to trigger the prompt function, and the video shooting interface displays a shooting entry, which is used to start video shooting. Therefore, the electronic device can display the prompt interface in response to the triggering operation of the prompt entry, thereby displaying the prompt text in the prompt interface, and can start video shooting in response to the triggering operation of the shooting entry.
[0145] It should be noted that before the shooting entry is triggered, the electronic device has not actually started shooting the video. At this time, a viewfinder may be displayed in the video shooting interface, and a preview image within the shooting range of the electronic device may be displayed in the viewfinder. The user of the electronic device may adjust the shooting range by adjusting the position of the electronic device so that the target object is within the shooting range of the electronic device, so that the image containing the target object can be captured when the electronic device shoots a video later.
[0146] In some embodiments, in order to facilitate subsequent video shooting, the electronic device can maintain the display state of the video shooting interface, that is, when the electronic device displays the prompt interface in response to the triggering operation of the prompt entry, the video shooting interface can still be displayed. Therefore, the prompt interface can be displayed simultaneously with the video shooting interface. For example, the prompt interface is displayed on the upper layer of the video shooting interface. For example, the prompt interface is in a transparent state or a semi-transparent state, and the prompt interface is displayed on the upper layer of the video shooting interface, but it will not block the area of the video shooting interface, thereby avoiding blocking the target object during the process of shooting the target object.
[0147] For example, the video shooting interface is as follows Figure 6 As shown, the video shooting interface includes a prompting entry "prompter" and a shooting entry "shooting". After the user triggers the prompting entry "prompter", the electronic device displays the prompting interface.
[0148] In some other embodiments, in addition to the prompting entrance and the shooting entrance, other function entrances may also be displayed in the video shooting interface. Figure 6 As shown, the video shooting interface displays a countdown option. By triggering the countdown option, the delay time can be set, and each time the shooting entrance is triggered, the video shooting is started after the delay time has passed, and as shown in FIG. Figure 7 As shown, the countdown time will be displayed within the delay time, providing users with sufficient preparation time. In addition, the video shooting interface also displays a flash option, which can be triggered to turn on the flash function when shooting a video. The video shooting interface displays a speed change option, which can be triggered to set the speed, and speed up or slow down the video after shooting. The video shooting interface also displays a music option, which can be triggered to set the background music of the video.
[0149] In other embodiments, the current interface displayed by the electronic device can also be another interface different from the video shooting interface. In response to a trigger operation on the prompt entry in the current interface, the video shooting interface and the prompt interface are displayed, and video shooting is performed based on the video shooting interface without having to enter the video shooting interface separately.
[0150] In step 502, the electronic device obtains input prompt text based on the prompt interface.
[0151] The prompt text can be input by the user on the electronic device, or can be input by copying operation, or obtained by importing the content of the selected text document. The content of the prompt text is consistent with the content that the target object needs to say, and the subsequent display of the prompt text can play the role of prompting the target object.
[0152] In some embodiments, Figure 6 As shown, the prompt interface includes an input entry. In response to a trigger operation on the input entry, the prompt interface switches to an input-enabled state, and the user can enter a prompt text in the prompt interface. Then, by clicking the top of the prompt interface or triggering a close option, the prompt interface can be switched to a non-input state, and then the input entry can be triggered again to modify the prompt text that has been entered, such as adding a new text segment or deleting any one or more text segments.
[0153] In other embodiments, Figure 6As shown, the prompt interface includes a setting option. In response to a trigger operation on the setting option, the setting interface is displayed, such as Figure 8 In the setting interface, the display mode of the prompt text can be set, such as the font size and font color of the prompt text. In response to the triggering operation of the close option in the prompt interface, or in response to the re-triggering operation of the setting option, the setting interface can be closed. Or in response to the triggering operation of the shooting entrance in the video shooting interface, it is necessary to start video shooting, and the setting interface can also be automatically closed at this time.
[0154] In other embodiments, Figure 6 As shown, the prompting interface includes a zoom option. In response to the triggering operation of the zoom option, the prompting interface is set to a movable state. At this time, the prompting interface can be moved to adjust the position of the prompting interface in the current interface, or the prompting interface can be enlarged or reduced to adjust the size of the prompting interface.
[0155] In step 503, the electronic device collects content information generated during the target object's speech.
[0156] After the prompt text is input, the electronic device can start prompting, so steps 503-505 can be executed to realize the prompting function.
[0157] In some embodiments, Figure 6 As shown, in a scenario where an embodiment of the present disclosure is applied to video shooting, after the prompt text is input in the prompt interface, video shooting is not started until the electronic device starts video shooting in response to a trigger operation on the shooting entrance, and executes steps 503-505 to display the prompt text, that is, the electronic device shoots the video while displaying the prompt text in the prompt interface.
[0158] In other embodiments, the prompting interface includes a start option, and in response to a triggering operation on the start option, it indicates that the prompt text has been set, so the electronic device will execute steps 503-505 to implement the prompting function.
[0159] It should be noted that steps 503-505 of the embodiment of the present disclosure can be executed at any time, as long as the prompt text is input during execution. The embodiment of the present disclosure does not limit the execution timing of steps 503-505.
[0160] In step 504, the electronic device identifies the content information and obtains identification information.
[0161] The identification information is used to indicate the target object's speaking progress. The specific process of step 504 is similar to the above steps 202, 302 and 402, and will not be repeated here.
[0162] In step 505, the electronic device displays the prompt text in the prompt interface based on the identification information, so that the prompt text segment highlighted in the prompt text matches the speaking progress of the target object.
[0163] The specific process of step 505 is similar to the above steps 203, 303 and 403, and will not be repeated here.
[0164] In some embodiments, in the video shooting scenario, by executing the above steps 503-505, a prompt text can be displayed while shooting the video, such as Fig. 9 The video shooting interface shown in the figure can display the duration of the currently shot video. It can also perform segmented shooting. For example, during the video shooting process, a shooting entrance is also displayed, and in response to the first trigger operation on the shooting entrance, the shooting is paused, the shot video clip is saved, and then in response to the first trigger operation on the shooting entrance, the shooting is restarted. In the shooting process, in response to the second trigger operation on the shooting entrance, the shooting is ended and the following is displayed: Fig.10 The shooting completion interface shown includes video clips saved during the shooting process.
[0165] In other embodiments, each time a video clip is captured, a preview entry for the video clip is displayed, and in response to a trigger operation on the preview entry, the video clip can be previewed. Fig.10 As shown in the figure, in the shooting completion interface, there are preview entrances of two video clips. The target object clicks the preview entrance of any video clip to preview the video clip. In addition, at least two video clips obtained by shooting can be merged to obtain a complete video. Fig.11 As shown, after the video is shot, the function options such as editing options, sharing options or saving options may be displayed. The video can be edited, shared or stored in a specified media library later. For example, when editing a video, a music track and a subtitle track are generated in the video editing interface. A track is a container for placing video clip materials, and the clip materials include background music and subtitles. By setting the clip materials of the video in different tracks and different time periods, different visual effects can be presented. In response to the triggering operation of the music track, the background music of the video or a certain video clip in the video can be set. In response to the triggering operation of the subtitle track, a picture in the video can be selected and subtitles can be added to the picture.
[0166] It should be noted that the above steps 503-505 are described by taking the display of the prompt text according to the target object's speaking progress as an example, and in another embodiment, the prompt text may not be displayed according to the target object's speaking progress, but each text segment in the prompt text may be scrolled at a uniform speed. The above two display modes may be set by the target object or by default of the electronic device.
[0167] In some embodiments, the prompt interface includes a mode option, which is used to turn on a uniform speed mode or a non-uniform speed mode. The uniform speed mode is used to uniformly scroll each text segment in the prompt text, and the non-uniform speed mode is used to display the prompt text based on the speaking progress of the target object.
[0168] For example, the mode options are shown in Figure 8 In the setting interface shown, the target object can determine whether to turn on the uniform speed mode or the non-uniform speed mode through the mode option. Optionally, if the mode option is turned on, it means that the uniform speed mode is turned on, and if the mode option is turned off, it means that the non-uniform speed mode is turned on. Alternatively, if the mode option is turned on, it means that the non-uniform speed mode is turned on, and if the mode option is turned off, it means that the uniform speed mode is turned on.
[0169] When the uniform speed mode is turned on, each text segment in the prompt text is scrolled at a preset speed. When the non-uniform speed mode is turned on, the prompt text is displayed based on the target object's speaking progress. When the electronic device turns on the non-uniform speed mode based on the mode option, when displaying the prompt text, the above steps 503 to 505 are performed. When the uniform speed mode is turned on based on the mode option, each text segment in the prompt text is scrolled and displayed at a preset speed. The preset speed can be determined by the electronic device according to the speed at which people generally speak, or set by the target object.
[0170] For example, Figure 8 As shown, the setting interface includes a scroll speed adjustment area, which includes a slider. The preset speed can be adjusted by moving the slider. The preset speed gradually increases as the slider moves from left to right. The target object can adjust the preset speed according to its own speaking speed. The scroll speed adjustment area is displayed only when the uniform speed mode is turned on, and the preset speed can be adjusted. When the non-uniform speed mode is turned on, the scroll speed adjustment area is switched to a hidden state and no longer displayed, or the scroll speed is adjusted to a non-editable state, and the slider is not allowed to be operated, so that the preset speed cannot be adjusted in the non-uniform speed mode.
[0171] The method provided by the embodiment of the present disclosure can display the prompt text according to the target object's speaking progress, that is, collect the content information generated during the target object's speaking process, identify the content information, obtain the identification information used to indicate the target object's speaking progress, and then display the prompt text based on the identification information. Even if the target object's speaking speed changes, the identification information can accurately indicate the target object's speaking progress, so it can be ensured that the highlighted prompt text segment is a text segment that matches the target object's speaking progress, thereby improving the accuracy and thus improving the prompt effect.
[0172] In addition, the embodiment of the present disclosure provides a prompting interface, based on which functions such as inputting prompt text, displaying prompt text, and editing prompt text can be realized, so as to facilitate the target object to set the prompt text and ensure the accuracy of the prompt text.
[0173] Among them, the prompting interface includes a mode option, and the mode option is used to turn on the uniform speed mode or the non-uniform speed mode. When the non-uniform speed mode is turned on, the prompt text is displayed according to the target object's speaking progress. Even if the target object's speaking speed changes, it can be ensured that the highlighted prompt text segment is a text segment that matches the target object's speaking progress, thereby improving accuracy and thus improving the prompting effect. When the uniform speed mode is turned on, each text segment in the prompt text is scrolled and displayed at a preset speed, which simplifies the operation and improves efficiency. These two modes can be selected as needed to improve flexibility.
[0174] Furthermore, in the video shooting scenario, the video shooting interface displays a prompt entry. In response to the trigger operation of the prompt entry, the prompt interface can be displayed, but the video shooting interface can still be displayed. Therefore, the prompt interface can be displayed simultaneously with the video shooting interface. In subsequent shooting scenarios, video shooting can be performed while the prompt text is displayed in the prompt interface to remind the target object of what needs to be said, thereby improving the prompt effect on the target object during the video shooting process. The current interface can also be another interface different from the video shooting interface. In response to the trigger operation of the prompt entry in the current interface, the video shooting interface and the prompt interface can be directly displayed without having to enter the video shooting interface separately, thereby improving the convenience of displaying the prompt interface.
[0175] Fig.12 is a flowchart of another prompt text display method according to an exemplary embodiment. Fig.12 As shown, the method is interactively executed by a control device and a teleprompter, and includes the following steps.
[0176] In step 1201, the control device collects content information generated during the target object's speech.
[0177] In the disclosed embodiment, the control device may collect at least one type of information such as video information or voice information, and after identifying the collected information, may control the teleprompter to display a prompt text.
[0178] In some embodiments, the control device is installed with a target application, which can be configured with a function of collecting information, can collect at least one type of information such as video information or voice information in the current scene, and recognize the collected information. And the control device controls the teleprompter through the target application.
[0179] Step 1201 is similar to step 201 and is executed by the control device, which will not be repeated here.
[0180] In step 1202, the control device identifies the content information to obtain identification information.
[0181] The specific process of step 1202 is similar to the above steps 202, 302 and 402, and is executed by the control device, which will not be repeated here.
[0182] In step 1203, the control device determines the position of the prompt text segment to be highlighted in the prompt text based on the identification information, and sends the position to the teleprompter.
[0183] Among them, the identification information is used to indicate the speaking progress of the target object, and can be a text segment included in the content information, or can be the position of the text segment included in the content information in the prompt text, etc. The embodiment of the present disclosure does not limit the specific form of the identification information.
[0184] After obtaining the identification information, the control device can determine the prompt text segment based on the identification information, and the prompt text segment is a text segment that matches the target object's speaking progress, that is, a text segment corresponding to the content currently being spoken by the target object. After determining the prompt text segment, the control device also determines the position of the prompt text segment in the prompt text, and sends the position to the teleprompter so that the teleprompter highlights the prompt text segment according to the position.
[0185] In step 1204, the teleprompter highlights the prompt text segment located at the position based on the position.
[0186] After receiving the position sent by the control device, the teleprompter finds the prompt text segment from the prompt text according to the position and highlights the prompt text segment. Optionally, the position can be the line number or paragraph number of the prompt text segment in the prompt text. For example, if the position is a line number, the teleprompter highlights the entire line where the prompt text segment is located based on the line number, or if the position is a paragraph number, the teleprompter highlights the entire paragraph where the prompt text segment is located based on the paragraph number. By highlighting the prompt text segment, it is convenient for the target object to quickly find the prompt text segment in the prompt text, thereby providing a timely and effective reminder to the target object.
[0187] The disclosed embodiments can also be applied in a speech scenario. When a target object is giving a speech, a control device is set near the target object to collect content information of the target object, while a teleprompter is set in front of the target object, and the target object can view the prompt text displayed by the teleprompter.
[0188] The disclosed embodiment provides a prompt text display method, which is interactively executed by a control device and a teleprompter. The control device can collect content information generated during the target object's speech, and after identifying the collected content information, it can control the teleprompter to display the prompt text. The control device and the teleprompter are two separate devices, and are no longer limited to being the same device. Therefore, the control device and the teleprompter can be placed in different positions as needed. For example, the control device is placed in a position that is conducive to collecting content information, and the teleprompter is placed in a position that is easy for the target object to see. This can improve the collection quality and prompt effect, and has a wider range of applications.
[0189] Fig.13 is a structural block diagram of a prompt text display device according to an exemplary embodiment. Fig.13 , the device comprises:
[0190] The collection unit 1301 is configured to collect content information generated during the target object's speech;
[0191] The recognition unit 1302 is configured to recognize the content information and obtain identification information, where the identification information is used to indicate the speaking progress of the target object;
[0192] The display unit 1303 is configured to display the prompt text based on the identification information, so that the prompt text segment highlighted in the prompt text matches the speaking progress of the target object.
[0193] In some embodiments, the acquisition unit 1301 includes:
[0194] a shooting subunit, configured to shoot the target object while the target object is speaking, to obtain a video clip;
[0195] The identification unit 1302 includes:
[0196] The lip reading recognition subunit is configured to perform lip reading recognition on the video segment to obtain a text segment corresponding to the video segment.
[0197] In some embodiments, the acquisition unit 1301 includes:
[0198] A collection subunit is configured to collect speech segments generated during the target object's speech;
[0199] The identification unit 1302 includes:
[0200] The speech recognition subunit is configured to perform speech recognition on the speech segment to obtain a text segment corresponding to the speech segment.
[0201] In some embodiments, the identification information is a text segment spoken by the target object, and the display unit 1303 includes:
[0202] a determination subunit configured to determine, based on the text segment, from the prompt text a prompt text segment that matches the text segment;
[0203] The display subunit is configured to highlight the prompt text segment when displaying the prompt text.
[0204] In some embodiments, the display subunit is configured to:
[0205] The prompt text fragment is displayed using a target display style, where the target display style is different from the display styles of other text fragments in the prompt text; or,
[0206] Each text segment in the prompt text is scrolled so that the prompt text segment is displayed at a focus position in the current display interface.
[0207] In some embodiments, the apparatus further comprises:
[0208] An acquisition unit is configured to acquire an input prompt text based on the prompt interface;
[0209] The display unit 1303 is configured as follows:
[0210] Based on the identification information, the prompt text is displayed in the prompt interface so that the highlighted prompt text segment in the prompt text matches the speaking progress of the target object.
[0211] In some embodiments, the apparatus further comprises:
[0212] The prompt interface display unit is configured to display the prompt interface in response to a trigger operation on a prompt entry in the current interface.
[0213] In some embodiments, the current interface is a video shooting interface, and the device further includes:
[0214] The shooting unit is configured to shoot a video during the process of displaying the prompt text in the prompt interface.
[0215] In some embodiments, the prompt interface includes a mode option, and the mode option is used to turn on a uniform speed mode or a non-uniform speed mode. The uniform speed mode is used to scroll each text segment in the prompt text at a uniform speed, and the non-uniform speed mode is used to display the prompt text based on the speaking progress of the target object; the collection unit 1301 is configured to execute the step of collecting content information generated during the target object's speech when the non-uniform speed mode is turned on based on the mode option.
[0216] In some embodiments, the display unit 1303 is configured to scroll and display each text segment in the prompt text at a preset speed when the uniform speed mode is turned on based on the mode option.
[0217] In the disclosed embodiment, the content information generated during the target object's speech is collected, the content information is identified, identification information for indicating the target object's speech progress is obtained, and then the prompt text is displayed based on the identification information. Even if the target object's speech speed changes, the identification information can accurately indicate the target object's speech progress, so it can be ensured that the highlighted prompt text segment is a text segment that matches the target object's speech progress, thereby improving accuracy and thus improving the prompt effect.
[0218] Regarding the prompt text display device in the above embodiment, the specific manner in which each unit performs operations has been described in detail in the embodiment of the relevant method, and will not be elaborated here.
[0219] Fig.14 1400 is a block diagram of an electronic device according to an exemplary embodiment. In some embodiments, the electronic device 1400 includes: a desktop computer, a laptop computer, a tablet computer, a smart phone or other electronic devices. The electronic device 1400 may also be called a user device, a portable electronic device, a laptop electronic device, a desktop electronic device or other names.
[0220] Typically, the electronic device 1400 includes a processor 1401 and a memory 1402 .
[0221] In some embodiments, the processor 1401 includes one or more processing cores, such as a 4-core processor, an 8-core processor, etc. In some embodiments, the processor 1401 is implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). In some embodiments, the processor 1401 also includes a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1401 is integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content that needs to be displayed on the display screen. In some embodiments, the processor 1401 also includes an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0222] In some embodiments, the memory 1402 includes one or more computer-readable storage media, which are non-transitory. In some embodiments, the memory 1402 also includes a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1402 is used to store executable instructions, which are used to be executed by the processor 1401 to implement the prompt text display method provided by the method embodiment of the present disclosure.
[0223] In some embodiments, the electronic device 1400 may further optionally include: a peripheral device interface 1403 and at least one peripheral device. In some embodiments, the processor 1401, the memory 1402 and the peripheral device interface 1403 are connected via a bus or a signal line. In some embodiments, each peripheral device is connected to the peripheral device interface 1403 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1404, a display screen 1405, a camera assembly 1406, an audio circuit 1407, a positioning assembly 1408 and a power supply 1409.
[0224] The peripheral device interface 1403 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1401 and the memory 1402. In some embodiments, the processor 1401, the memory 1402, and the peripheral device interface 1403 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1401, the memory 1402, and the peripheral device interface 1403 are implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0225] The radio frequency circuit 1404 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1404 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1404 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. In some embodiments, the radio frequency circuit 1404 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. In some embodiments, the radio frequency circuit 1404 communicates with other electronic devices through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1404 also includes circuits related to NFC (Near Field Communication), which is not limited in the present disclosure.
[0226] The display screen 1405 is used to display a UI (User Interface). In some embodiments, the UI includes graphics, text, icons, videos, and any combination thereof. When the display screen 1405 is a touch display screen, the display screen 1405 also has the ability to collect touch signals on the surface or above the surface of the display screen 1405. In some embodiments, the touch signal is input to the processor 1401 as a control signal for processing. At this time, the display screen 1405 is also used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 1405 is one, which is arranged on the front panel of the electronic device 1400; in other embodiments, the display screen 1405 is at least two, which are arranged on different surfaces of the electronic device 1400 or are folded; in other embodiments, the display screen 1405 is a flexible display screen, which is arranged on a curved surface or a folded surface of the electronic device 1400. Even, the display screen 1405 is also arranged in a non-rectangular irregular shape, that is, a special-shaped screen. In some embodiments, the display screen 1405 is made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0227] The camera assembly 1406 is used to capture images or videos. In some embodiments, the camera assembly 1406 includes a front camera and a rear camera. Typically, the front camera is disposed on the front panel of the electronic device, and the rear camera is disposed on the back of the electronic device. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize the panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 1406 also includes a flash. In some embodiments, the flash is a monochrome temperature flash, and in some embodiments, the flash is a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which is used for light compensation at different color temperatures.
[0228] In some embodiments, the audio circuit 1407 includes a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 1401 for processing, or input them into the radio frequency circuit 1404 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, in some embodiments, there are multiple microphones, which are respectively arranged at different parts of the electronic device 1400. In some embodiments, the microphone is an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 1401 or the radio frequency circuit 1404 into sound waves. In some embodiments, the speaker is a traditional film speaker, and in some embodiments, the speaker is a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 1407 also includes a headphone jack.
[0229] The positioning component 1408 is used to locate the current geographic location of the electronic device 1400 to implement navigation or LBS (Location Based Service). In some embodiments, the positioning component 1408 is a positioning component based on the US GPS (Global Positioning System), China's Beidou system, Russia's Grenas positioning system, or the European Union's Galileo system.
[0230] The power supply 1409 is used to power various components in the electronic device 1400. In some embodiments, the power supply 1409 is an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1409 includes a rechargeable battery, the rechargeable battery is a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery that is charged through a wired line, and a wireless rechargeable battery is a battery that is charged through a wireless coil. The rechargeable battery is also used to support fast charging technology.
[0231] In some embodiments, the electronic device 1400 further includes one or more sensors 1410 , including but not limited to: an acceleration sensor 1411 , a gyroscope sensor 1412 , a pressure sensor 1413 , an optical sensor 1414 , and a proximity sensor 1415 .
[0232] In some embodiments, the acceleration sensor 1411 detects the magnitude of acceleration on the three coordinate axes of the coordinate system established by the electronic device 1400. For example, the acceleration sensor 1411 is used to detect the components of gravity acceleration on the three coordinate axes. In some embodiments, the processor 1401 controls the display screen 1405 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1411. In some embodiments, the acceleration sensor 1411 is also used to collect motion data of games or users.
[0233] In some embodiments, the gyroscope sensor 1412 detects the body direction and rotation angle of the electronic device 1400, and the gyroscope sensor 1412 cooperates with the acceleration sensor 1411 to collect the user's 3D actions on the electronic device 1400. The processor 1401 can implement the following functions based on the data collected by the gyroscope sensor 1412: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0234] In some embodiments, the pressure sensor 1413 is disposed on the side frame of the electronic device 1400 and / or the lower layer of the display screen 1405. When the pressure sensor 1413 is disposed on the side frame of the electronic device 1400, it is capable of detecting the user's holding signal of the electronic device 1400, and the processor 1401 performs left and right hand recognition or shortcut operations according to the holding signal collected by the pressure sensor 1413. When the pressure sensor 1413 is disposed on the lower layer of the display screen 1405, the processor 1401 controls the operability controls on the UI interface according to the user's pressure operation on the display screen 1405. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0235] The optical sensor 1414 is used to collect the ambient light intensity. In one embodiment, the processor 1401 controls the display brightness of the display screen 1405 according to the ambient light intensity collected by the optical sensor 1414. Specifically, when the ambient light intensity is high, the display brightness of the display screen 1405 is increased; when the ambient light intensity is low, the display brightness of the display screen 1405 is decreased. In another embodiment, the processor 1401 also dynamically adjusts the shooting parameters of the camera assembly 1406 according to the ambient light intensity collected by the optical sensor 1414.
[0236] The proximity sensor 1415, also called a distance sensor, is usually disposed on the front panel of the electronic device 1400. The proximity sensor 1415 is used to collect the distance between the user and the front of the electronic device 1400. In one embodiment, when the proximity sensor 1415 detects that the distance between the user and the front of the electronic device 1400 is gradually decreasing, the processor 1401 controls the display screen 1405 to switch from the screen-on state to the screen-off state; when the proximity sensor 1415 detects that the distance between the user and the front of the electronic device 1400 is gradually increasing, the processor 1401 controls the display screen 1405 to switch from the screen-off state to the screen-on state.
[0237] Those skilled in the art will understand that Fig.14 The structure shown in the figure does not constitute a limitation on the electronic device 1400, and it can include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.
[0238] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory including instructions, and the above instructions can be executed by a processor of an electronic device to complete the prompt text display method in the above method embodiment. In some embodiments, the computer-readable storage medium can be ROM (Read-Only Memory), RAM (Random Access Memory), CD-ROM (Compact Disc Read-Only Memory), magnetic tape, floppy disk, optical data storage device, etc.
[0239] In an exemplary embodiment, a computer program product is also provided. The computer program product includes a computer program. When the computer program is executed by a processor, the prompt text display method in the above method embodiment is implemented.
[0240] In some embodiments, the computer program involved in the embodiments of the present disclosure may be deployed and executed on one electronic device, or on multiple electronic devices located at one location, or on multiple electronic devices distributed at multiple locations and interconnected by a communication network. Multiple electronic devices distributed at multiple locations and interconnected by a communication network may constitute a blockchain system.
[0241] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims above.
[0242] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A prompt text display method, characterized in that: include: In response to a triggering operation on a prompt entry in a current interface, a video shooting interface and a prompt interface are displayed simultaneously, wherein the current interface is another interface different from the video shooting interface, and the prompt interface includes an input entry, a setting option, and a zoom option; In response to a triggering operation on the input entry, while continuing to display the video shooting interface and the prompting interface at the same time, switching the prompting interface to an input-enabled state to receive a prompt text input by a user; In response to a trigger operation on the setting option, a setting interface is displayed while displaying the video shooting interface and the prompting interface; in response to a trigger operation on a shooting entry in the video shooting interface, video shooting is started, and the setting interface is closed; wherein the setting interface includes a mode option, a scrolling speed adjustment area, and a font setting option, wherein the mode option is used to turn on a uniform speed mode or a non-uniform speed mode, wherein the uniform speed mode is used to uniformly scroll each text segment in the prompt text, wherein the non-uniform speed mode is used to display the prompt text based on the speaking progress of the target object, wherein when the uniform speed mode is turned on, the scrolling speed adjustment area is in an editable state, and is used to set the scrolling speed of the text segment in the prompt text, and when the non-uniform speed mode is turned on, the scrolling speed adjustment area is in a non-editable state; wherein the font setting option is used to set the font display style of the prompt text; In response to a triggering operation on the zoom option, the prompting interface is set to a movable state, and the position and size of the prompting interface in the movable state are adjustable; In a case where the non-uniform speed mode is enabled based on the mode option, collecting content information generated during the target object's speech; Identify the content information to obtain identification information, where the identification information is used to indicate the speaking progress of the target object; When the video shooting interface is displayed, the prompt text is displayed in the prompt interface based on the identification information so that the highlighted prompt text segment in the prompt text matches the speaking progress of the target object, and the prompt interface is located on an upper layer of the video shooting interface.
2. The method according to claim 1, characterized in that The collecting of content information generated during the target object's speech includes: Filming the target object while the target object is speaking to obtain a video clip; The identifying the content information to obtain identification information includes: Lip reading recognition is performed on the video segment to obtain a text segment corresponding to the video segment.
3. The method according to claim 1, characterized in that The collecting of content information generated during the target object's speech includes: Collecting speech clips generated by the target object during speaking; The identifying the content information to obtain identification information includes: Perform speech recognition on the speech segment to obtain a text segment corresponding to the speech segment.
4. The method according to claim 1, characterized in that: The identification information is a text segment spoken by the target object, and the step of displaying the prompt text in the prompt interface based on the identification information so that the highlighted prompt text segment in the prompt text matches the speaking progress of the target object includes: Based on the text segment, determining a prompt text segment matching the text segment from the prompt text; When displaying the prompt text, the prompt text segment is highlighted.
5. The method according to claim 4, characterized in that The step of highlighting the prompt text segment when displaying the prompt text includes: The prompt text segment is displayed using a target display style, where the target display style is different from the display styles of other text segments in the prompt text; or Each text segment in the prompt text is scrolled so that the prompt text segment is displayed at a focus position in the current display interface.
6. The method according to claim 1, characterized in that The method further comprises: When the uniform speed mode is turned on based on the mode option, each text segment in the prompt text is scrolled and displayed at a preset speed.
7. A prompt text display device, characterized in that: include: A prompt interface display unit, configured to simultaneously display a video shooting interface and a prompt interface in response to a trigger operation on a prompt entry in a current interface, wherein the current interface is another interface different from the video shooting interface, and the prompt interface includes an input entry, a setting option, and a zoom option; A module for executing the following steps: in response to a trigger operation on the input entry, while continuing to display the video shooting interface and the prompting interface at the same time, switching the prompting interface to an input-enabled state to receive a prompt text input by a user; In response to the triggering operation of the setting option, the setting interface is displayed while the video shooting interface and the prompting interface are displayed; in response to the triggering operation of the shooting entrance in the video shooting interface, the video shooting is started, and the setting interface is closed; wherein the setting interface includes a mode option, a scrolling speed adjustment area and a font setting option, the mode option is used to turn on the uniform speed mode or the non-uniform speed mode, the uniform speed mode is used to uniformly scroll each text segment in the prompt text, the non-uniform speed mode is used to display the prompt text based on the speaking progress of the target object, when the uniform speed mode is turned on, the scrolling speed adjustment area is in an editable state, used to set the scrolling speed of the text segment in the prompt text, when the non-uniform speed mode is turned on, the scrolling speed adjustment area is in a non-editable state; the font setting option is used to set the font display style of the prompt text; in response to the triggering operation of the zoom option, the prompting interface is set to a movable state, and the position and size of the prompting interface in the movable state can be adjusted; A collection unit, configured to collect content information generated during the target object's speech when the non-uniform speed mode is enabled based on the mode option; an identification unit, configured to identify the content information to obtain identification information, wherein the identification information is used to indicate the speaking progress of the target object; The display unit is configured to display the prompt text in the prompt interface based on the identification information when displaying the video shooting interface, so that the highlighted prompt text segment in the prompt text matches the speaking progress of the target object, and the prompt interface is located on an upper layer of the video shooting interface.
8. An electronic device, characterized in that: The electronic device includes a processor and a memory, wherein at least one computer program is stored in the memory, and the at least one computer program is loaded and executed by the processor to implement the prompt text display method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the prompt text display method as claimed in any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the prompt text display method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Text content matching method and device, electronic equipment and storage medium
CN113724709A
File display method and device, equipment, storage medium and program product
CN114449133A
Utterance recognition device and computer program
JP2019208138A
System and method for enhancing comprehension and readability of text
US8731905B1