clean up and create a rest proxy for speech