Giter Site home page Giter Site logo

shaashwat05 / predictive_speech Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 869 KB

An application that uses a microphone and python to listen and convert the speech to text, while using previous data and LSTM model to help a person complete their speech

Python 100.00%
speech-to-text speech-recognition lstm raspberry-pi microphone pygame ibm-watson

predictive_speech's Introduction

forthebadge made-with-python

Python 3.6

Predictive_speech

You are giving a speech and get stuck, do not worry I have a solution for you. This project uses raspberry pi and a usb microphone to record your speech continuously. I have used the speech_recognition library in python to listen to that speech, decode it continuously to text using google recognizer and disply it with the help of a pygame window. After speaking a minimum number of words it shows the dialog box in the same window with a prediction of what you might have said next. The prediction is done using a LSTM model with work from Charles Dickens as dataset.

IBM-Watson - Since this is a pure IoT project, IBM cloud computing resources are used to deploy the model and predict output accordingly.

THe only backside of this prject seems to be the bare minimum lag caused by compilation of various working functions.

Prerequisites

What things you need to install the software and how to install them

pickle
numpy
keras
speech_recognition
pygame
watson_machine_learning_client
os
contextlib

Getting Started

Download a python interpeter preferable a version beyond 3.0. Install the prerequisute libraries given above.Cross-check variable directories and train the model with few changes here and there. Then deploy the model to IBM. Run compile.py file to start giving a speech without fear and see the prediction in a pygame window.

$train.py

$deploy.py

$compile.py     

Output

Watch the video

Built With

Author

LinkedIn-profile

Documentation

The whole documentation and explanation of code as well as concepts can be found in this article : https://iot4beginners.com/predictive-speech-with-raspberry-pi-and-deep-learning/

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.