in reply to Star Trek House

If something doesn't exist already, is it possible to do it in Perl?

It exists, in Perl. Pay a visit to Mister House, where you'll find voice recognition and much, much more.