(file_path)
| 167 | return filepaths |
| 168 | |
| 169 | def transcribe_and_save(file_path): |
| 170 | transcriber = aai.Transcriber() |
| 171 | transcript = transcriber.transcribe(file_path) |
| 172 | transcript_path = file_path + ".txt" |
| 173 | with open(transcript_path, "w") as f: |
| 174 | f.write(transcript.text) |
| 175 | return transcript_path |
| 176 | |
| 177 | # Save extracted text to a txt file |
| 178 | def save_extracted_text_to_txt(text, filename): |