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.
There's 4 main ways to have the environment for the labs and assigment set-up for remote work:
- Use the remote desktop service
- Use the informatics VPN
- Use SSH tunneling
- Run locally
- Set up the remote desktop service
- Connect to remote desktop
- Open terminal on remote desktop
- Run 'ssh s123456.lab.inf.ed.ac.uk'
- 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
- Set up the informatics VPN
- Connect to the VPN
- Open terminal
- Run 'ssh [email protected]'
- Insert your DICE password
- Run shared commands (add --ip=* after --no-browser)
- Copy the link in the terminal to your browser
source /opt/conda/etc/profile.d/conda.sh conda activate asr_env jupyter notebook --no-browser --ip=*3: SSH tunneling
- Open terminal
- Run 'ssh -J [email protected] -L 8888:localhost:8888 [email protected]'
- Insert your DICE password
- Insert your DICE password again
- Run shared commands
- Copy the link that appears in the terminal and put it in your browser
source /opt/conda/etc/profile.d/conda.sh conda activate asr_env jupyter notebook --no-browser
4:Run jupyter locally (NOT RECOMMENDED)
- Install python 3.7, virtualenv and graphviz
- Run shared commands
- Copy the link that appears on the terminal, open the browser and paste it in
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.
Just make sure you have a version of Python between 3.5 and 3.7, then use pip to install openfst_python.