mirror of
https://github.com/romanz/amodem.git
synced 2026-03-20 01:06:04 +08:00
wave should have also bytes_per_sample
This commit is contained in:
3
wave.py
3
wave.py
@@ -9,7 +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
|
||||
bytes_per_sample = bits_per_sample / 8.0
|
||||
bytes_per_second = bytes_per_sample * Fs
|
||||
|
||||
audio_format = 'S{}_LE'.format(bits_per_sample) # PCM signed little endian
|
||||
|
||||
|
||||
Reference in New Issue
Block a user