audio_filesize: Calculated size of raw audio files

Description Usage Arguments

View source: R/audio_filesize.R

Description

Calculates the raw size of audio date at set sample rate, bit depth and duration.

Usage

1
2
3
4
5
6
7
8
audio_filesize(
  samp.rate = 44100,
  bit.depth = 16,
  channels = 1,
  duration = 1,
  duration.unit = "seconds",
  output.unit = "bits"
)

Arguments

samp.rate

Sample rate

bit.depth

Bit depth

channels

The number of audio channels

duration

Duration of recording

duration.unit

One of seconds, minutes, hours, days

output.unit

"bits" or "bytes"


sonicscrewdriver documentation built on May 2, 2021, 5:06 p.m.