Completing Tasks in Flutter Using Voice

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hi and welcome back to alan video tutorials today we are going to move on to design a truly intelligent digital assistant being able to complete literally any task in your app through voice as a recap in the previous video we built a custom voice assistant and embedded it in our app our assistant is rather chatbot now it can talk to users or answer their questions which already makes it a great asset to your business you can easily add more intents to the voice script and launch it for example in the custom support space but in this video we will take it a level up we will build a voice assistant that will listen to users requests and take actions in the app in response in our sample flutter app we can perform only one action tap the button to increment the counter let's see how we can do the same with the voice command we'll start with the voice script in alan studio let's add a new intent to increment the counter now when our users say this phrase allen will reply incrementing the counter together with plain response we want our assistant to actually complete a task in the app to do this we'll send the command to increment the counter from alan's voice script to the app let's add another play function to the intent and specify a json object for our command init we'll name our command increment beside the command name itself the json object can have any other data that needs to be sent to the app but for this tutorial we'll keep it short time to test it in the debugging chat as you can see our command is sent every time we say increment the counter let's proceed with handling this command in the app when we were adding the allen button to the app you might have noticed the handle block in the button code snippet this is the place where we tell our app how it must react when it receives commands from alan's voice script right now it simply writes a received command to the log we'll open devtools and check what we get increment the counter incrementing the counter increment the count incrementing the counter let's update our handler when the app receives a command the handle command function will be invoked and the command data will be passed to it and we'll set up the logic for handle command below here is how it works now if the received command is increment we'll use the increment counter function we already have in the app this is the same function we call when the user taps the increment button let's play with it in a real app increment the counter incrementing the counter increment the count incrementing the counter this is a really simple example of how you can complete tasks in the upward voice in a similar way you can trigger any activity you need for example navigate between screens populate fills with the data the user provides enable and disable options in the app and so much more for a real life example head on to allen sdk flutter repository and get our fluttershrine sample app this is a completely voice enabled shopping app that can give you a lot of ideas of how you can implement a voice interface in your app check it out show accessories which accessories would you like we have several types available vagabond sac stella sunglasses whitney belt and six others do you want to hear more show me whitney belt added one whitney belt to your order would you like to add more items or check out check out now try it yourself to voice enable every task and every workflow in your app and stay with alania for more
Info
Channel: Alan AI
Views: 7,404
Rating: undefined out of 5
Keywords: voice ai, voice, voice enable app, add voice to the app, alan, alan ai, alan app, voice experience, vui, vux, conversational voice ai, conversational ai, voice bot, chat bot, alexa, google assistant, ai assistant, ai for apps, voice user experience, voice interface, chatbot interface, voicebot interface, cortana, ionic, flutter, web assistant, ios assistant, android assistant, custom voice assistant, voice assistant for apps, voice user interface
Id: AgcJwuCpUvs
Channel Id: undefined
Length: 5min 2sec (302 seconds)
Published: Wed Oct 06 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.