![]() ![]() #convert the text captions in the list object to a delimited fileĭelimitedFile = captions.ConvertToDemilitedFiles(captions_list) #based on the file type call the method that coverts them into python list objectĬaptions_list = captions.vttToCaptions(vttObject)Ĭaptions_list = captions.srtToCaptions(vttObject) Objs = S3Helper().getFilteredFileNames(bucketName,"input/",) #filter only the VTT and SRT file for processing in the input folder The function iterates through the WebVTT and SRT files in the input folder and for each file, it extracts the caption text, converts it into a delimited text file using an HTML ( ) tag, and places it in the captions-in folder of the Amazon S3 bucket. In this architecture, uploading the file with triggerFileName triggers the Lambda function -S3CaptionsFileEventProcessor. We explain Steps 3–7 in more detail in the following sections.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |