@cvp Thank you so much for your comment. I did’nt know this function. However, as far as I read a description about recognize, recognize function can translate a voice to text from recorded file.
I hope that my application can receive a voice directly, but if I implement following procedure, my hope may be able to be implemented.
Sound recorder is executed.
Record a user voice and save it.
Call speech.recognize
Translate voice file made by No.2 section to text file.