added basic error handling to the speaker model