integrated voice API sample code into webserver