Giter Club home page Giter Club logo

speech_recognition_chatbot's Introduction

Scripted Chatbots

Scripted ai chatbots are chatbots that operate based on pre-determined scripts stored in their library.

When a user inputs a query, or in the case of chatbots with speech-to-text conversion modules, speaks a query, the chatbot replies according to the predefined script within its library.

One drawback of this type of chatbot is that users must structure their queries very precisely, using comma-separated commands or other regular expressions, to facilitate string analysis and understanding.

This makes it challenging to integrate these chatbots with NLP-supported speech-to-text conversion modules, and they are rarely suitable for conversion into intelligent virtual assistants.

Installing Packages required to Build Speech Recognition Chatbot

pip install SpeechRecognition #(3.8.1)

pip install gTTS #(2.2.3)

pip install transformers #(4.11.3)

pip install tensorflow #(2.6.0, or pytorch)

pip install pyaudio

NLP or Natural Language Processing has a number of subfields as conversation and speech are tough for computers to interpret and respond to. One such subfield of NLP is Speech Recognition. Speech Recognition works with methods and technologies to enable recognition and translation of human spoken languages into something that the computer or AI chatbot can understand and respond to.

For computers, understanding numbers is easier than understanding words and speech.

When the first few speech recognition systems were being created, IBM Shoebox was the first to get decent success with understanding and responding to a select few English words.

Today, we have a number of successful examples which understand myriad languages and respond in the correct dialect and language as the human interacting with it. Most of this success is through the SpeechRecognition library.

So here, A popular Google API is used.

The first task that our chatbot must work for is the speech to text conversion. Basically, this involves converting the voice or audio signals into text data.

In summary, the chatbot actually ‘listens’ to your speech and compiles a text file containing everything it could decipher from your speech.

You can test the codes by running them and trying to say something aloud.

It should optimally capture your audio signals and convert them into text.

speech_recognition_chatbot's People

Contributors

msharshath avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.