Updated example API code to support newest api

See
https://github.com/duncanj/java-speech-api/commit/3ec8510b4d686b9844024eaeb164b6abc5b041a9