Coder Social home page Coder Social logo

xrosliang / python-speech-recognition Goto Github PK

View Code? Open in Web Editor NEW

This project forked from realpython/python-speech-recognition

0.0 1.0 0.0 2.24 MB

Speech Recognition with Python examples

Home Page: https://realpython.com/python-speech-recognition/

License: MIT License

Python 100.00%

python-speech-recognition's Introduction

Speech Recognition with Python

This repository contains resources from The Ultimate Guide to Speech Recognition with Python tutorial on Real Python.

Audio files for the examples in the Working With Audio Files section of the post can be found in the audio_files directory. To download them, use the green "Clone or download" button at the top right corner of this page.

The guessing_game.py file contains the full source code for the "Guess a Word" game example.

NOTE: You will need to install the SpeechRecognition and PyAudio packages in order to run the example. Please see the tutorial for step-by-step instructions.

You can test your SpeechRecognition and PyAudio installation by downloading guessing_game.py and typing the following into a Python REPL session:

>>> import speech_recognition as sr
>>> from guessing_game.py import recognize_speech_from_mic
>>> r = sr.Recognizer()
>>> m = sr.Microphone()
>>> recognize_speech_from_mic(r, m)  # speak after running this line
{'success': True, 'error': None, 'transcription': 'hello'}

Of course, your output will vary depending on what you said after running recognize_speech_from_mic(r, m).

python-speech-recognition's People

Contributors

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