add logging of audio sizes

This commit is contained in:
Roman Zeyde
2014-07-11 14:37:07 +03:00
parent 583e6b3172
commit 3ec158b320
2 changed files with 11 additions and 2 deletions

View File

@@ -9,6 +9,8 @@ log = logging.getLogger(__name__)
from common import Fs
Fs = int(Fs) # sampling rate
bits_per_sample = 16
bytes_per_second = bits_per_sample * Fs / 8.0
audio_format = 'S{}_LE'.format(bits_per_sample) # PCM signed little endian
def play(fname, **kwargs):