Method and apparatus for speech recognition and translation system