stream = audio1.open(format=FORMAT, channels=CHANNELS, rate=RATE, input=True, frames_per_buffer=CHUNK)
data = stream.read(44100)
len(data) = 176400
1 단위샘플당 4 byte
1초 44100 번 샘플링​
arecord -D plughw:CARD=Device,DEV=0 -d 60 -f cd -t wav -q -vv -V streo -c 2 -r 44100 60sec_pcm.wav
Plug PCM: Route conversion PCM (sformat=S16_LE)
  Transformation table:
    0 <- 0
    1 <- 0
Its setup is:
  stream       : CAPTURE
  access       : RW_INTERLEAVED
  format       : S16_LE
  subformat    : STD
  channels     : 2
  rate         : 44100
  exact rate   : 44100 (44100/1)
  msbits       : 16
  buffer_size  : 22050
  period_size  : 5513
  period_time  : 125011
  tstamp_mode  : NONE
  tstamp_type  : MONOTONIC
  period_step  : 1
  avail_min    : 5513
  period_event : 0
  start_threshold  : 1
  stop_threshold   : 22050
  silence_threshold: 0
  silence_size : 0
  boundary     : 1445068800
Slave: Hardware PCM card 1 'USB PnP Sound Device' device 0 subdevice 0
Its setup is:
  stream       : CAPTURE
  access       : MMAP_INTERLEAVED
  format       : S16_LE
  subformat    : STD
  channels     : 1
  rate         : 44100
  exact rate   : 44100 (44100/1)
  msbits       : 16
  buffer_size  : 22050
  period_size  : 5513
  period_time  : 125011
  tstamp_mode  : NONE
  tstamp_type  : MONOTONIC
  period_step  : 1
  avail_min    : 5513
  period_event : 0
  start_threshold  : 1
  stop_threshold   : 22050
  silence_threshold: 0
  silence_size : 0
  boundary     : 1445068800
  appl_ptr     : 0
  hw_ptr       : 0
                                  +00%|00%+

52916268
192.168.0.1 - - [20/Apr/2023 21:42:13] "GET /wav3 HTTP/1.1" 200 -
iphone request range 0-1
2
192.168.0.1 - - [20/Apr/2023 21:42:13] "GET /wav3 HTTP/1.1" 206 -
iphone request range 0-52916267
52916268
192.168.0.1 - - [20/Apr/2023 21:42:14] "GET /wav3 HTTP/1.1" 206 -
iphone request range 52887552-52916267
28716
192.168.0.1 - - [20/Apr/2023 21:42:14] "GET /wav3 HTTP/1.1" 206 -
iphone request range 131768-52887551
52755784
192.168.0.1 - - [20/Apr/2023 21:42:14] "GET /wav3 HTTP/1.1" 206 -
iphone request range 44433408-52916267
8482860
192.168.0.1 - - [20/Apr/2023 21:42:37] "GET /wav3 HTTP/1.1" 206 -
iphone request range 46530560-52916267
6385708
192.168.0.1 - - [20/Apr/2023 21:42:49] "GET /wav3 HTTP/1.1" 206 -
iphone request range 48693248-52916267
4223020
192.168.0.1 - - [20/Apr/2023 21:43:01] "GET /wav3 HTTP/1.1" 206 -
iphone request range 50855936-52916267
2060332
192.168.0.1 - - [20/Apr/2023 21:43:13] "GET /wav3 HTTP/1.1" 206 -
stream = audio1.open(format=FORMAT, channels=CHANNELS, rate=RATE, input=True, frames_per_buffer=CHUNK)
data = stream.read(44100)
len(data) = 176400
1 단위샘플당 4 byte
1초 44100 번 샘플링
  • 네이버 블러그 공유하기
  • 네이버 밴드에 공유하기
  • 페이스북 공유하기
  • 카카오스토리 공유하기