MacMusic  |  PcMusic  |  440 Software  |  440 Forums  |  440TV  |  Zicos
siri
Recherche

Creating Shortcuts That Accept Voice Input

mardi 10 mai 2022, 17:00 , par MacMost
When creating Shortcuts for the Mac or iOS you can use voice input easily when you trigger the Shortcut with Siri.



Check out Creating Shortcuts That Accept Voice Input at YouTube for closed captioning and more options.
Video Transcript: Hi, this is Gary with MacMost.com. Let me show you how you can use Shortcuts with your voice to provide input.
MacMost is brought to you thanks to a great group of more than 1000 supporters. Go to MacMost.com/patreon. There you can read more about the Patreon Campaign. Join us and get exclusive content and course discounts.
So a short time ago I did a tutorial that showed you how to use Shortcuts to add data to the end of a Numbers spreadsheet. That prompted some people to ask me if there was a way you could use your voice to provide that data rather than having to type it. Actually Shortcuts works very well like this but it's not obvious how to do this especially if you're on a Mac. The trick is that there is nothing special you need to do. The same actions you use to accept typed input can be used to accept voice input if triggered by Siri.
So let's create a new shortcut here. Now the first thing I want to do is I want to name the shortcut. It's very important to choose your name wisely if you plan to use the shortcut with Siri because you trigger the shortcut using the exact name. So I could do something like Take a Note but actually Siri already responds to that. I want to add to this existing note. Let's call this Add To Voice Note. Something Siri can't confuse with anything else.
Now what I want to do is I want to ask for input. So I'm going to search for Ask over here and there's Ask For Input. I can ask for text with prompt like that. Now if I run this it's going to prompt me to type something which is not what we want to do. We want to have Siri prompt us so we can speak the text. So, how do you change this to make it so that it accepts voice input not typing input? Well, the answer is you don't have to change anything at all. When you trigger this with Siri this will not prompt you for text on the screen that you type with your keyboard. It will prompt you to speak the text.
So, let's go and finish this off with a search for note. There's Find Notes. What we want to do is find All Notes and add a Filter. All Notes with Name Containing and let's create a special note that we'll use for this. I'll call this Verbal Notes. Over here in the Notes App I already created Verbal Notes. So this name matches exactly. So this will find that one note and then we want to append to Note.
Now the Append command will actually do some odd things here. It will try to append a note that is here to another note. We don't want to do that. So I'll click here and Clear. Now this is empty. We want to Append Text. I'm going to Control Click, or two-finger click on this, select Magic Variable, and select to provide input. Then I'm going to click here, select Magic Variable and select the found notes. So it's going to ask us for text. It's going to find this note with the exact name. Then it's going to append the text we typed or spoke to that note.
Let's try this out just here by running it. It's going to prompt us to type something. We'll type something just to test. Done. You can see it works and appends this here. But we want to be able to speak this and have it work. Well, we really don't need to do anything else to set this up. Right here we don't need to pin it in the bar, use it as a Quick Action, or set it up for anything. Siri already will look for a shortcut for something that you speak its name. So let's give this a try. I'm going to click here to invoke Siri and then use this name here to invoke the shortcut.
Add to voice note. Siri responds, Shortcut says what would you like to add. Something else. Siri -That's done.
So you can see how it easily added that. It was a bit awkward that way it asked but watch what happens when I try it again.
Add to voice note. Siri responds, what would you like to add. Hello world. Siri -Done
So it's less awkward the second time you do it.
The great thing about this is this works on the iPhone and iPad the same way. As a matter of fact since Shortcuts are shared through iCloud this is already on my iPhone and my iPad and I can invoke Siri. I could even use the Voice Activation for Siri if I had that enabled on my device. Ask it to trigger Add To Voice Note by speaking that and it will prompt me to speak something which then it will add to this note which also is in iCloud. So I can already use this shortcut and this note across all my Apple devices.
So let's take a look at this record event into a spreadsheet that I created before. I'm going to take this shortcut and duplicate it like that and then I'm going to double click it to enter. I'm going to simplify the name here to record event. Then I'm going to replace this selection from the list here with that Ask command. Ask For Input. So it's going to ask for text with prompt. Then I'm going to change the chosen item here so it's actually going to add this provided input as text here. It's going to put that at the bottom of this spreadsheet. So let's give this a try.
Record event. Siri -What would you like to record? This is a test. Siri -One moment.
So you could see here it recorded what I spoke.
This definitely opens up a lot of possibilities for using Shortcuts to record events, or to choose items based on what you speak. You can use that Ask For Input command for all sorts of different things. I hope you found this useful. Thanks for watching. Related Subjects: Shortcuts (34 videos), Siri (24 videos)
Related Video Tutorials:
Creating Custom Voice Control Commands For Your Mac ― macOS Shortcuts: Add a Watermark To an Image ― macOS Shortcuts: Capture Text From Your Screen ― The Super-Secret Mac Keyboard Shortcuts Almost No One Knows About
https://macmost.com/creating-shortcuts-that-accept-voice-input.html
News copyright owned by their original publishers | Copyright © 2004 - 2024 Zicos / 440Network
Date Actuelle
ven. 19 avril - 06:35 CEST