How to record human voice and display as text on command line?
Apple's terminal does this.

Press the function key twice to start dictation. If that doesn't work, open Speech and Dictation system preferences and enable it/select the sound input you prefer to dictate to.