https://github.com/remarkablemark/speech-recognition-demo
Speech recognition demo.
https://github.com/remarkablemark/speech-recognition-demo
python python3 speech-recognition speech-to-text transcription
Last synced: 2 months ago
JSON representation
Speech recognition demo.
- Host: GitHub
- URL: https://github.com/remarkablemark/speech-recognition-demo
- Owner: remarkablemark
- License: mit
- Created: 2020-08-29T22:04:22.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-29T22:15:27.000Z (almost 5 years ago)
- Last Synced: 2025-02-14T08:45:16.927Z (4 months ago)
- Topics: python, python3, speech-recognition, speech-to-text, transcription
- Language: Python
- Homepage: https://remarkablemark.org/blog/2020/08/24/python-speech-recognition/
- Size: 95.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Speech Recognition Demo
Demo that transcribes audio to text using [SpeechRecognition](https://pypi.org/project/SpeechRecognition/).
See [blog post](https://remarkablemark.org/blog/2020/08/24/python-speech-recognition/) for more information.
## Prerequisites
[Python 3](https://www.python.org/):
```sh
python3 --version
```[pip](https://pypi.org/project/pip/):
```sh
pip3 --version
```[virtualenv](https://docs.python-guide.org/dev/virtualenvs/):
```sh
pip3 install virtualenv
virtualenv --version
```## Install
Clone repository:
```sh
git clone https://github.com/remarkablemark/speech-recognition-demo.git
cd speech-recognition-demo
```Create and activate project virtual environment:
```sh
virtualenv venv
source venv/bin/activate
```If `requirements.txt` exists, install dependencies:
```sh
pip3 install -r requirements.txt
```Otherwise, install dependencies and create `requirements.txt`:
```sh
pip3 install SpeechRecognition
pip3 freeze > requirements.txt
```## Run
Run script to convert file `audio.wav` to text:
```sh
python3 transcribe.py audio.wav
```Optional: save transcription to file `transcript.txt`:
```sh
python3 transcribe.py audio.wav transcript.txt
```## License
[MIT](LICENSE)