Speech To Text - trigger Dication builtin OSX

djtoshi182's icon

Hello.

I would like to trigger to run Speech-to-Text (Dictation in OSX) in Max.
If it has to be done in shell, how to run Dictation via terminal?

Best,

djtoshi182's icon

I found this command on shell object, how can I change this to open and close OSX builtin Dictation?

Max Patch
Copy patch and select New From Clipboard in Max.

Florent Ghys's icon

I wish I could help you
look for aka.listen and "recognize", they're pretty old objects but could be a starting point
let us know if you figure out something!

djtoshi182's icon

I found an osascript to press Fn key twice, but this code won'w work, any mistype?

/usr/bin/osascript -e 'tell app \"System Events\" to key code 63, 63'

Source Audio's icon

osascript -e 'tell application \"System Events\" to key code 63 & 63'

You can test shell by delaying message
osascript -e 'tell application \"System Events\" to key code 46 & 46'
and bringing focus to textedit.
It should type mm

Max Patch
Copy patch and select New From Clipboard in Max.

djtoshi182's icon

Thank you!