gpt-3.5-turbo-0301· OpenAI
WildChat-4.8M (AI2)
how to extract output of fast-whisper in txt, srt, etc. fyi i run it on google colab
- User
how to extract output of fast-whisper in txt, srt, etc. fyi i run it on google colab
- Assistant
To extract the output of fast-whisper in txt or srt format, you can follow these steps:
- After running fast-whisper on Google Colab, click on the folder icon on the left-hand side.
- Find the folder containing the audio files and the output files generated by fast-whisper.
- Right-click on the output file you want to download and select the "Download" option.
- Once downloaded, you can open the file in a text editor or media player that supports the format.
Alternatively, you can also use the following code to save the output as a txt file:
codeimport fastwhisper output_text = fastwhisper.whisper("input_audio.wav", "en") with open("output.txt", "w") as file: file.write(output_text)Replace
input_audio.wavwith the name of your audio file and"en"with the language of your audio file. This code will save the output as a txt file named "output.txt" in the same directory as your script.