Fabric
Fabric copied to clipboard
Tweak audio file handling in ts CLI
What this Pull Request (PR) does
Adds a context manager to properly close audio files after processing, and uses temp files for the audio segments to ensure things get cleaned up after we're done.
Related issues
None.
Testing
Locally ran poetry run ts <some_podcast_mp3_file> and verified everything transcribed without leaving any temporary files.