a very grandiose name in swift it's called string interpolation and it means i want to take the name i was passed in paul sophie charlotte and luna and put that directly into my text and so i press on paul up here it will remember that paul was tapped or sophie was tapped or he was tapped right there i'll press play now and see what happens let's see it should help you see our code run all being well having a little think on you can do it for playgrounds there we go there's me nice and big tap on my face and uh if i go actually up to here and choose show console be more helpful perhaps there we go so here's our output paul was tapped paul was tapped paul was tapped and then down here sophie was tapped and then charlotte was tapped and then of course luna was tapped the smiliest dog in the world i'll leave her right there anyway so we can see the output from our messages right now are appearing in this console at the bottom and you bring up the full screen if you want to see everyone that's happening right now or keep this more toast approach which is there by default anyway so we're seeing what's happening or printing a message to our screen saying so-and-so was tapped which is a a starting point but it's not great what we want here is to have sounds for our people that play when they're tapped and this means we've got to start by importing some audio files we can work with now i've already made some sounds for sophie for charlotte and for luna so i'll import those now i can press plus and then insert from it'll open the files app so i can choose so here's luna's sound and then i'll go into here and choose uh insert from i'll scroll through and find sophie and then i'll insert again and then i'll bring in upstairs there we go so i have all three of these names pulled in and that's straight from my icloud files just like the rest of your icloud files in your ipad now with that done swift playground can go and show us what these sound like you can go ahead and tap on charlotte here then tap play and it'll play back her sound hello there we go so you're hearing charlotte play or hearing sophie play meh that's exactly how she sounds by the way so each of those by not pure coincidence match the same names as my photos so we have charlotte charlotte mNUMBER_TOKENa luna luna mNUMBER_TOKENa and sophie sophie mNUMBER_TOKENa um there wasn't one for me but that's okay so i can go ahead and record one by launching voice memos on my ipad and recording something so i'll go back to my ipad again go way over to the right here i have my apps ready to go choose voice memos and then press record hello swift playgrounds there we go so this thing i'll just call that paul sensible name for it i'll then press this share button up here and i'll put this thing over to files the icloud files on my ipad so i'll bring that into here
NO_SEGMENT_TOKEN