| import os | |
| import time | |
| import subprocess | |
| with open(os.devnull, 'w') as devnull: | |
| subprocess.Popen('ffmpeg -y -re -f lavfi -i "sine=frequency=440:duration=20" -blocksize 2048 test.wav', shell=True) | |
| time.sleep(0.1) | |
| while True: | |
| print(os.path.getsize("test.wav")) | |
| time.sleep(0.1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment