import speech_recognition as sr

r = sr.Recognizer()

with sr.Microphone() as source:
	print("Say something:")
	audio = r.listen(source)
	print("Time over. thanks")
	
	
try:
	print("Text: " + r.recognize_google(audio, language = 'tr-TR'))
except:
	pass