2

I would like to speak into my computer's microphone, have what I say converted to text and then have that available as a shell variable.

Is this possible? I thought I might do it using Google's speech input feature:

enter image description here

4
  • What do you mean by "access"? Can you give us an example? Also, in your screenshot, the text in the "search bar" is https://www.google.com. Do you mean the text in Google's search field? If so, would you want it for all search fields? Only Google's? Pleaseedit your question and clarify. Commented Dec 29, 2015 at 8:58
  • Yes I just typed in the bar in search field. Did Not enter button. Actual requirements is I want to say something in voice to google chrome using microphone. Then through the linux i want to access the word from google chrome. Commented Dec 29, 2015 at 9:14
  • OK. But to do what? Why do you need to go through chrome first? I doubt it will be possible without actually hitting enter and running the search. If what you want is to convert speech to text and save as a variable, please edit your question and make that clear. Don't add another comment, edit. Comments are easy to miss and hard to read. Commented Dec 29, 2015 at 9:56
  • @terdon changed the title. Do you answer please. Commented Dec 29, 2015 at 11:02

1 Answer 1

0

This can be done using nerd-dictation:

SPEECH="$(nerd-dictation begin --timeout=1.0 --output=STDOUT)"

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.