Skip to content

Instantly share code, notes, and snippets.

@Leticia-Carraro
Created September 21, 2021 01:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Leticia-Carraro/fff555847675895777d604bb0cda9158 to your computer and use it in GitHub Desktop.
Save Leticia-Carraro/fff555847675895777d604bb0cda9158 to your computer and use it in GitHub Desktop.
'''Aqui estamos percorrendo um diretório com áudios e transcrevendo todos os áudios
que se encontram nele'''
for audio_file_name in os.listdir(audio_path):
transcript = google_transcribe(audio_path, audio_file_name, bucketname)
transcript_filename = audio_file_name.split('.')[0] + '.txt'
write_transcripts(test_file, transcript_filename,transcript)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment