import pyaudio
import wave
import numpy as np

FORMAT = pyaudio.paInt16
CHANNELS = 1
RATE = 48000
CHUNK = 1024 # Buffer size

audio = pyaudio.PyAudio()

stream = audio.open(format=FORMAT, channels=CHANNELS,
                    rate=RATE, input=True, frames_per_buffer=CHUNK)

frames = []

for i in range(0, int(RATE / CHUNK)*2):
    data = stream.read(CHUNK)
    frames.append(data)


# Stop the stream
stream.stop_stream()
stream.close()
audio.terminate()



waveFile = wave.open("rec.wav", 'wb')
waveFile.setnchannels(CHANNELS)
waveFile.setsampwidth(audio.get_sample_size(FORMAT))
waveFile.setframerate(RATE)
waveFile.writeframes(b''.join(frames))
waveFile.close()

@@ -119,16 +119,35 @@
 r size%0A%0A
+print(%22Recording%22)%0A
 audio = 
@@ -470,16 +470,31 @@
 nate()%0A%0A
+print(%22Saving%22)
 %0A%0AwaveFi
@@ -686,16 +686,31 @@
 aveFile.close()%0A
+%0Aprint(%22Done%22)%0A

Add print statements