Generation audio frames and saving silent mp3 files
Could be used alone but was designed to use with gtts to make a pause between sounds
The class constructor has only one argument - the silence time in seconds (a float is available). The timing accuracy is no worse than 0.024 seconds (this is the length of one frame) which seems to be sufficient for audio applications
>>> from silence import *
>>> Silence(10).save('silence.mp3')
>>> from silence import *
>>> with open('silence.mp3', 'wb') as f:
>>> f.write(Silence(3).get_frames())
>>> from gtts import gTTS
>>> from silence import *
>>> with open('hello.mp3', 'wb') as f:
>>> gTTS('hello', lang='en').write_to_fp(f)
>>> Silence(5).write_to_fp(f)
>>> gTTS('bonjour', lang='fr').write_to_fp(f)