<s> import speech_recognition as sr <EOL> r = sr . Recognizer ( ) <EOL> with sr . Microphone ( ) as source : <EOL> print ( "<STR_LIT>" ) <EOL> audio = r . listen ( source ) <EOL> with open ( "<STR_LIT>" , "<STR_LIT:wb>" ) as f : <EOL> f . write ( audio . get_raw_data ( ) ) <EOL> with open ( "<STR_LIT>" , "<STR_LIT:wb>" ) as f : <EOL> f . write ( audio . get_wav_data ( ) ) <EOL> with open ( "<STR_LIT>" , "<STR_LIT:wb>" ) as f : <EOL> f . write ( audio . get_aiff_data ( ) ) <EOL> with open ( "<STR_LIT>" , "<STR_LIT:wb>" ) as f : <EOL> f . write ( audio . get_flac_data ( ) ) </s>
