update asr related code after latest API changes
Merge branch 'master' into portable
sync asr