Skip to content

Instantly share code, notes, and snippets.

View scythargon's full-sized avatar

Dmitry Vasilev scythargon

View GitHub Profile
user www-data;
worker_processes auto;
pid /run/nginx.pid;
events {
worker_connections 768;
# multi_accept on;
}
http {
@scythargon
scythargon / recognize.py
Created June 22, 2018 01:26
Simple Flask application to demonstrate the Google Speech API usage.
#!/usr/bin/env python
"""
Simple Flask application to demonstrate the Google Speech API usage.
Install the requirements first:
`pip install SpeechRecognition flask`
Then just run this file, go to http://127.0.0.1:5000/
and upload an audio (or may be even video) file there, using the html form.
(I've tested it with a .wav file only - relying on Google here).