Speech Command Recognition With Tensorflow.JS and React.JS | Javascript AI

Поділитися
Вставка
  • Опубліковано 14 лип 2024
  • Speech is a powerful medium.
    Words have shaped nations, built empires and rallied masses.
    So, why not bring speech into your next React.JS app!?
    This video shows you exactly how to do that. Using AI powered speech command recognition through Tensorflow.JS you're able to detect speech commands through the browser using your microphone. The speech commands have been pre-trained using a deep neural network (AI) to be able to recognise a number of different commands like 'up', 'down', 'left' and 'right'.
    And what's best? In just 26ish minutes you'll be able to integrate into your existing React.JS app!
    In this video, you'll learn how to:
    1. Install the Tensorflow.JS Speech Command Recognition
    2. Build a React Web App that leverages the model
    3. Displaying speech commands to the screen
    Get the code: github.com/nicknochnack/Speec...
    Chapters:
    0:00 - Start
    2:29 - Installing React.JS using Create React App
    4:45 - Installing Tensorflow.JS & Speech Command Recognition
    6:03 - Importing Dependencies
    7:02 - Setting Up Application States
    10:07 - Creating a Speech Recognizer
    14:49 - Activating Speech Recognizer
    16:41 - Displaying Commands to the Screen
    20:31 - Argmax for Javascript
    21:32 - Getting the Highest Probability Detection
    23:25 - Displaying Commands to the Screen
    Oh, and don't forget to connect with me!
    LinkedIn: / nicholasrenotte
    Facebook: / nickrenotte
    GitHub: github.com/nicknochnack
    Patreon: / nicholasrenotte
    Join the Discussion on Discord: / discord
    Happy coding!
    Nick
    P.s. Let me know how you go and drop a comment if you need a hand!
  • Наука та технологія

КОМЕНТАРІ • 56

  • @kilometro115
    @kilometro115 9 місяців тому +1

    AI is having fun with your Australian accent. Thank you for your great job on all the TensorFlow.js - React series

  • @TheOmoyoruba
    @TheOmoyoruba 3 роки тому +2

    Thanks a lot Nick for dropping these tutorials. Why on earth will someone dislike this video!!!!

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому +1

      Thanks so much @Ola.Techie, glad you like them!

  • @justalex8342
    @justalex8342 3 роки тому +1

    Haha, the timing is awesome!
    I was exploring how to search files with speech and there you go uploading this! :D

  • @bo3oof
    @bo3oof 3 роки тому +1

    Thank you so much
    Please more advanced videos about Speech Commands with Tensorflow.JS + React.JS 👍🏼

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому +3

      Oooooh, stay tuned, wait til you see what’s coming out on Sunday @b3of!

  • @slowedReverbJunction
    @slowedReverbJunction 3 роки тому +3

    Oo gawd, I was just on your channel for making a new project and taking some reference and here you dropped a new awesome thing 🔥😍. Ty Nick sir

  • @SuperEarthsea
    @SuperEarthsea 3 роки тому +1

    great stuff! you make learning tensorflow so fun

  • @SarthakGamer
    @SarthakGamer 3 роки тому +1

    This channel has some very cool videos. Keep at it 👊

  • @alexandregagne4151
    @alexandregagne4151 2 роки тому +1

    Nice video. Thanks

  • @joshualausberg6771
    @joshualausberg6771 3 роки тому +1

    Awesome video!

  • @ravindunawanjana7050
    @ravindunawanjana7050 2 роки тому +1

    Greate video can you do a video about transfer learning as well

  • @mhsh6168
    @mhsh6168 2 роки тому +4

    Great video! can you do a video about transfer learning and train the model to get used other words?

    • @NicholasRenotte
      @NicholasRenotte  2 роки тому +2

      You got it!

    • @galaxxyz777
      @galaxxyz777 2 роки тому +1

      ​@@NicholasRenotte Yeah I am also interested to know how to train model so it can identify other words

  • @TamilLatest
    @TamilLatest 3 роки тому +1

    I just discovered your channel thanks for the inspiration! I’m working on a voice recognition app and I’m paying for the API, but maybe I can use this since it’s free and can be used offline? Crazy times

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      Hell yeah, give it a crack @Mike! The paid APIs might be a little more accurate but I found that this was pretty awesome considering how straightforward it was to use.

  • @techOtuts
    @techOtuts 2 роки тому +2

    I am having issues with @tensorflow/tfjs, error; module cannot resolve fs. I am using nextJs though

  • @LotfiOR
    @LotfiOR 2 роки тому

    Wow! Does that apply to React Native as well?

  • @marwarekik9469
    @marwarekik9469 2 роки тому

    Hello, i have a project for audio emotion detection with python, and i need to do the ihm with React js, can anyone tell me what should i do ? the steps ? the library thank you

  • @normans_io
    @normans_io 3 роки тому

    awesome!

  • @benbelkacemdrifa-ft1xr
    @benbelkacemdrifa-ft1xr 11 місяців тому

    Please tell me if we can use this code to do urban sound recognition.

  • @whysoasync4933
    @whysoasync4933 2 роки тому

    Can you use this in Electron?

  • @TamilLatest
    @TamilLatest 3 роки тому +1

    So I just rewatched the video, and I have a question - if my app displays a random sentence that I want TF to recognize, how do I train the model to get used to these words? Is there a broader speech recognition model I could use other than the commands like "down/up"?

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому +2

      Heya @Mike, you can use transfer learning to train custom commands. Check out the walkthrough at towards the bottom of this: github.com/tensorflow/tfjs-models/tree/master/speech-commands Let me know if you want a vid on it!

    • @ravindunawanjana7050
      @ravindunawanjana7050 2 роки тому +2

      @@NicholasRenotte I have the same task to do it is very helpfull if you can do a video about transferlearning

  • @ShivanS
    @ShivanS 3 роки тому +1

    So good!

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      Thanks so much @Shivan!! Doing anything interesting with it?!

    • @ShivanS
      @ShivanS 3 роки тому +1

      @@NicholasRenotte Do you recall when you have your eyes tested you have to read out words on a letter chart? I want to make this using speech commands. Again, another idea living in my head.

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      @@ShivanS that is superrr cool, and ridiculously practical as well. Let me know how you go with it!

  • @youtubevideos5124
    @youtubevideos5124 4 місяці тому

    How to make custom dataset for tensorflow js operation

  • @arjhielegaspi461
    @arjhielegaspi461 5 місяців тому

    are you using node.js?

  • @tanzimulhasib2833
    @tanzimulhasib2833 2 роки тому +1

    How do i popolate the Commands? There are only 20. But what to do if i want to remove them & create my custom command? I am a biginner please guide me with your valuable suggestions.

    • @NicholasRenotte
      @NicholasRenotte  2 роки тому +1

      Check out the transfer learning section here: github.com/tensorflow/tfjs-models/tree/master/speech-commands

  • @Kams2326
    @Kams2326 2 роки тому +1

    Can speech command recognition be combined with image recognition?

  • @ddhan288
    @ddhan288 3 роки тому +1

    how can I use it to create a voice activated music app ?

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      You would probably need to build or have the app already then plug this in @Deepak.

  • @oxydol3456
    @oxydol3456 4 місяці тому

    I see. the model was pre trained.

  • @sanchari_samaya
    @sanchari_samaya 3 роки тому +1

    Make also a video of how to deploy phyton model in react

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому

      Heya @Chandan, phyton or python?

    • @sanchari_samaya
      @sanchari_samaya 3 роки тому

      @@NicholasRenotte like if we make our own custom model in photon and to use that model in our react project. I hope for your next upcoming video 🙂

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому +1

      @@sanchari_samaya hmmm, might need to look into it. Haven't worked with photon before. Mainly tfjs!

  • @AKASHARA-vp1oq
    @AKASHARA-vp1oq 3 роки тому +1

    sir how to become a great datascientist like you

    • @NicholasRenotte
      @NicholasRenotte  3 роки тому +2

      😊 I don't know if I'm that great but honestly my number one tip is to work at it every day, code something new and showcase it to the world!

  • @lumine8483
    @lumine8483 Рік тому

    i kid you not took me 2 hours to resolve fs error XD.. I'm soo dead inside, and some other error that occurred.. ahhh XD

    • @imasdance4784
      @imasdance4784 Рік тому

      how did you fix it? i have the same issue