http://localhost:8000/cgi-bin/hello.py
? import speech_recognition as sr
import pydub
import os.path
def recognition(file_src, file_src2):
sound = pydub.AudioSegment.from_mp3(file_src)
sound.export(file_src2, format="wav")
sample_audio = sr.AudioFile(file_src2)
key = sr.recognize_google(sample_audio)
return key
print(os.path.isfile('audio5.mp3'), os.path.isfile('test.waw'))