aws-samples / aws-transcribe-captioning-tools Goto Github PK
View Code? Open in Web Editor NEWConvert AWS Transcribe output into multiple caption formats.
License: MIT No Attribution
Convert AWS Transcribe output into multiple caption formats.
License: MIT No Attribution
the getPhrasesFromTranscript function will leave out the last partial phrase if the number of words in the transcript is not divisible by 10. As a result the vtt file will be missing the last 1-9 words from the transcript.
note: bug might also exist in getPhrasesFromTranslation function
The get_time_code function sometimes delivers the microseconds incorrectly causing the following caption to appear before the previous caption is removed.
I corrected the issue by overriding the function with the code below:
def get_time_code( aws_timecode ):
timedelta = datetime.timedelta(seconds=float(aws_timecode))
hours = (timedelta.seconds // 3600) % 24
minutes = (timedelta.seconds // 60) % 60
seconds = timedelta.seconds % 60
microseconds = timedelta.microseconds / 1000
return str( "%02d:%02d:%02d.%03d" % (hours, minutes, seconds, microseconds ))
Thank you for sharing the code. But I cannot find vtt.py file to convert json to vtt file. Any idea?
Hi! I'm interested in using these tools, but I don't see the srt.py file mentioned in the README.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.