Audio File Size Calculator

Write a function audio_size_bytes(sample_rate, bit_depth, duration_seconds, channels) that returns the uncompressed file size, in bytes, of a digital audio recording.

Read sample_rate, bit_depth, duration_seconds and channels as integers, one per line, and print the result.

Example: input 44100, 16, 10, 1 → output 882000.

main.py
Loading editor…

Console

Run your code to see output here.