November 2019
Intermediate to advanced
346 pages
9h 36m
English
In the following steps, we show how to use the speech recognition library to convert audio recordings of speech into text and then search through these texts for desired keywords:
import speech_recognitionlist_of_audio_files = ["Eleanor_Roosevelt.wav", "Comey.wav"]keywords = ["Twitter", "Linkedin", "Facebook", "Instagram", "password", "FBI"]
def transcribe_audio_file_to_text(audio_file): """Takes an audio file and ...