Giter Club home page Giter Club logo

gspeech-py's Introduction

gspeech-py

voice to text using google speech using python scripts

  1. install pyAudio (required for recording audio)
  2. install FLAC command line tools from here: (https://xiph.org/flac/download.html). This command line tool is attached with the python scripts.

FLAC tool will encode the .WAV recorded sound file into .FLAC file (lossless encoding for sound files)

How to run:

  1. Run py script: recordSound_as_WAV_example.py The script is hardcoded to record a sound file for 3 seconds in .WAV format with file name sndClip.wav

  2. Now run the attached flac tool to encode sndClip.wav to sndClip.flac flac -o sndClip.flac sndClip.wav

  3. Now run gspeechToText_example.py as: python gspeechToText_example.py This script will send sndClip.flac file to google and the appropriate text will be returned in the JSON string.

** TODO **

  • Integrate the separate tools in single package/module (record as WAV, conversion to FLAC and other convenient APIs)
  • error handling
  • Integrate with CMU Sphinx since this is using the unofficial API from google. So will only work as long as google supports this on the hard coded URL used within the script.

gspeech-py's People

Contributors

decebel avatar yashs360 avatar

Watchers

 avatar  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.