In the Drafts documentation on x-callback-url, there is an option to dictate text and return the result.
/dictate iOSmacOS
Open Drafts dictation interface. Pass the resulting dictated text to the x-success URL instead of saving it in Drafts.
Using drafts5://x-callback-url/dictate as the x-callback-url, dictation works fine, and I can get the data back to the calling app, but the only way that I seem to be able to do this is to use the Create option on the dictation window. Pause just pauses with no return, and Cancel discards the dictation.
The thing about the Create option, is that it creates a new draft with the dictated content.
I think I must be missing something on using this. Can anyone point me to what I can do or select to return the dictated text without creating a new draft (or creating my own action to do it)? The documentation clearly notes that the dictation can be invoked with the URL in such a way that the text is only passed back “instead” of it being saved in Drafts.
What would be your trigger? If it is something local, probably no benefit over you triggering it yourself. If remote, you would need to know it is actively recording to utilise it, and you may not be around.
I’d spotted it was the server. Pi scenario makes more sense, but would a push from your local device to the Pi be quicker/fewer interactions/fewer potential points of failure? I’m not sure, but it would at least remove the dependence on the Pushcut server I think.
OK, looked and there is a “save” parameter for the /dictate URL action that was not in the docs. Defaults to true, but if you pass save=false the result will be returned only in the callback and discarded in Drafts. Updated the docs accordingly.