This patch is a small extension to the WebVTT example which allows to directly save the WebVTT output to a file like this: ./test_webvtt.py test.wav out.vtt