split ( '.' ) m, s = divmod ( int ( sec ), 60 ) h, m = divmod ( m, 60 ) return ")'. group ( 3 )) else : return None def formatSrtTime ( secTime ): """Convert a time in seconds (google's transcript) to srt time format.""" sec, micro = str ( secTime ). On the bottom right hand side of the image you’ll notice three dots. Here’s an image of a video that I’ve uploaded to YouTube. Go to the video you want to get the transcript from. compile ( r'(.*)?' ) def parseLine ( text ): """Parse a subtitle.""" m = re. How to download your transcript from your YouTube video You need to be logged in to your YouTube account. Its free of charge to download on over 1.8. NB: to get google's transcript, use tihs URL: """ # srt example """1 00:00:20,672 -> 00:00:24,972 Entre l’Australia et la South America, dans l’Océan South Pacific…""" # Google's transcript example (first tags) """ This is a matter of National Security.""" import re, sys # Pattern to identify a subtitle and grab start, duration and text. Live Transcribe is easy to use, all you need is a Wi-Fi or network connection. Takes google's transcript filename as argument (xml extension required). #!/usr/bin/python # -*- encoding:utf-8 -*- """Translate Google's Transcript into srt file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |