Framework for Spoken Term Detection