Skip to content

chezecz/research-project

Repository files navigation

Research Project

Using cloud speech recognition in low bandwidth environments

Pre-requisite

portaudio package for using stream.py

Install for macOS using Homebrew

brew install portaudio

Launch Project

python3 -m folder_name.filename

Launch Project

  1. Clone project

git clone https://github.com/chezecz/research-project.git

  1. Install dependencies

pip install -r requirements.txt

  1. Set enviroment variables

FLASK_ENV=development

FLASK_APP=server

(Optional) Google Cloud API key

export GOOGLE_APPLICATION_CREDENTIALS=$PATH_TO_FILE/api_key.json

  1. Launch Flask server

flask run

By Default: Server is located on http://127.0.0.1:5000/ or http://localhost:5000/

  1. (Optional) Upload necessary files into resources folder
  2. Set your Google Cloud API Key

export GOOGLE_APPLICATION_CREDENTIALS=$PATH_TO_FILE/api_key.json

  1. Run Application

    a. Client application

    python3 client.py [filename]

    b. Run Stream Application for recording microphone

    python3 stream.py