<filename>src/voice-recorder/voice-recorder.py
from .librec import *
from os import system

def main():
	rec = Recorder()
	name = str(input("enter the file name without sufix: ")+".wav")
	with rec.open(name, 'wb') as recfile:
  		recfile.start_recording()
  		input("hit enter to exit")
        recfile.stop_recording()

	system(f"ffmpeg -i {name} ~/{name}.mp3")
	system(f"rm -rf {name}")
