Enabled HTTP chunked transfer encoding
[ampy.git] / record.py
index 8b4207db8cb001c3ccb35b9a9f44743fa465889b..69cb10fa91f8c8e944053b8315c9714bab67fbfb 100755 (executable)
--- a/record.py
+++ b/record.py
@@ -4,9 +4,10 @@ PyAudio example: Record a few seconds of audio and save to a WAVE
 file.
 """
 
-import pyaudio
-import wave
 import sys
+import wave
+
+import pyaudio
 
 CHUNK = 1024
 FORMAT = pyaudio.paInt16
@@ -14,7 +15,7 @@ CHANNELS = 2
 RATE = 44100
 RECORD_SECONDS = 5
 WAVE_OUTPUT_FILENAME = "output.wav"
-DEVICE = 3
+DEVICE = 5
 
 if sys.platform == 'darwin':
     CHANNELS = 1