Skip to content
/ asr Public

Automatic Speech Recognition at the University of Edinburgh.

Notifications You must be signed in to change notification settings

edemattos/asr

Repository files navigation

asr_labs

Info

This repo contains the labs for the spring 2021 Automatic Speech Recognition course of the University of Edinburgh. The labs make use of Python, Jupyter notebooks and OpenFST. The labs will be uploaded periodically; if you are not familiar with git, just manually download the files you're missing or you might lose your work.

Setup for UoE students

There's 4 main ways to have the environment for the labs and assigment set-up for remote work:

  1. Use the remote desktop service
  2. Use the informatics VPN
  3. Use SSH tunneling
  4. Run locally
1: Remote desktop
  1. Set up the remote desktop service
  2. Connect to remote desktop
  3. Open terminal on remote desktop
  4. Run 'ssh s123456.lab.inf.ed.ac.uk'
  5. Run these commands:
git clone https://github.com/Ore-an/asr_labs.git
cd asr_labs
source /opt/conda/etc/profile.d/conda.sh
conda create -n asr_env python=3.7
conda activate asr_env
pip install openfst-python jupyter
jupyter notebook --ip=*
After the first setup do the first four step and then:
source /opt/conda/etc/profile.d/conda.sh
conda activate asr_env
jupyter notebook --ip=*

If the token is not working, 'jupyter notebook password' lets you set a password. 2: VPN

  1. Set up the informatics VPN
  2. Connect to the VPN
  3. Open terminal
  4. Run 'ssh [email protected]'
  5. Insert your DICE password
  6. Run shared commands (add --ip=* after --no-browser)
  7. Copy the link in the terminal to your browser
After the first setup, substitute the shared commands with
source /opt/conda/etc/profile.d/conda.sh
conda activate asr_env
jupyter notebook --no-browser --ip=*
3: SSH tunneling
  1. Open terminal
  2. Run 'ssh -J [email protected] -L 8888:localhost:8888 [email protected]'
  3. Insert your DICE password
  4. Insert your DICE password again
  5. Run shared commands
  6. Copy the link that appears in the terminal and put it in your browser
After the first setup, substitute the shared commands with
source /opt/conda/etc/profile.d/conda.sh
conda activate asr_env
jupyter notebook --no-browser

4:Run jupyter locally (NOT RECOMMENDED)

  1. Install python 3.7, virtualenv and graphviz
  2. Run shared commands
  3. Copy the link that appears on the terminal, open the browser and paste it in
After the first setup, substitute the shared commands with
source /opt/conda/etc/profile.d/conda.sh
conda activate asr_env
jupyter notebook --no-browser

Shared commands:

git clone https://github.com/Ore-an/asr_labs.git
cd asr_labs
source /opt/conda/etc/profile.d/conda.sh
conda create -n asr_env python=3.7
conda activate asr_env
pip install openfst-python jupyter
jupyter notebook --no-browser

After the first setup, connecting to the machine, activating the conda environment and starting the jupyter notebook will suffice.

We think the easiest option is to use the remote desktop, while the VPN and the SSH tunnel will give you the most responsive experience. Running jupyter on your personal machine is not recommended, but you can do it, in a pinch, for the first few labs. The files we will use for the assignment are on the school's AFS filesystem and can't be copied locally for data protection. While it is possible to have AFS on your personal machine, it's more complicated than just running the code on a lab machine and we don't have experience with the set-up, so we won't be able to provide tech support.

For everybody else

Just make sure you have a version of Python between 3.5 and 3.7, then use pip to install openfst_python.

About

Automatic Speech Recognition at the University of Edinburgh.

Resources

Stars

Watchers

Forks