CPC G06F 40/30 (2020.01) [G06F 16/7844 (2019.01); G06F 40/253 (2020.01); G11B 27/036 (2013.01); H04N 21/8455 (2013.01)] | 18 Claims |
1. A method for aligning a text with a media material, the method comprising:
determining a set of anchor points in the text based on a grammatical structure of the text, each of the anchor points being a starting position of a text segment of the text;
performing following operations i) to v) repeatedly until all anchor points are removed from the set of anchor points or all media materials are removed from a set of media materials:
i) ranking the anchor points in the set of anchor points based on text segments starting from the anchor points,
ii) selecting a target anchor point from the set of anchor points based on the ranked anchor points in the set,
iii) determining, from the set of media materials, a media material matching a text segment starting from the target anchor point,
iv) removing the target anchor point from the set of anchor points, and
v) returning the media material matching the text segment starting from the target anchor point, and removing, from the set of media materials, the media material matching the text segment starting from the target anchor point;
aligning the text segments with returned matching media materials respectively;
displaying a first interface with an input box; inputting a web address into the input box;
and in response to inputting the web address into the input box, displaying a second interface with a plurality of options, the options being selectable to set parameters of a video; and
in response to determining the option in the second interface, performing operations including: acquiring the text from a webpage based on the web address; generating the video based on the parameters, the text segments of the text and the respective matching media materials; and playing the video.
|