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:
This can be done using nerd-dictation:
SPEECH="$(nerd-dictation begin --timeout=1.0 --output=STDOUT)"
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.