For a recent POC I had a requirement to implement two factor authentication for users who may have impaired vision and would struggle to read an OTP or the code from a 2FA application.
To achieve this I cloned the existing OpenAM HOTP module and integrated it with The Twilio service: https://www.twilio.com/
I might do a bit more of a deep dive into how exactly this works later but for now the code is up in Github:
And you can see a video of how it works below:
There is definitely room for improvement here, at the moment I am using the a Twimlet to encode the voice, in a production deployment you will want to generate TWIML (https://www.twilio.com/docs/api/twiml) in order to have more control over the voice i.e. introduce pauses etc.
This blog post was first published @ http://identity-implementation.blogspot.no/, included here with permission from the author.