web2py.transcription/README.md

63 lines
1.8 KiB
Markdown
Raw Permalink Normal View History

2021-10-21 16:30:04 +02:00
web2py.transcription is a web application based on web2py for transcribing audio and video files. The core of the application is the speech recognition toolkit vosk.
2021-10-21 16:59:01 +02:00
# Requirements
2021-10-21 16:29:09 +02:00
* ffmpeg
* git
* python3
* pip3
* python module srt
* python module vosk
2021-10-21 16:59:01 +02:00
* python module webvtt-py
2021-10-21 16:34:30 +02:00
* vosk language model
2021-10-21 16:29:09 +02:00
2021-10-21 16:59:01 +02:00
# Install on Ubuntu
The following steps install the application to ~/web2py
2021-10-21 16:29:09 +02:00
```
apt install ffmpeg
apt install python3-pip
pip3 install --upgrade pip
2021-10-21 16:59:01 +02:00
cd ~
2021-10-21 16:29:09 +02:00
git clone --recursive https://github.com/web2py/web2py.git
cd web2py/applications
mkdir transcription
cd transcription
git clone https://gitea.iwm-tuebingen.de/mschmidt/web2py.transcription.git .
pip3 install -t modules srt
pip3 install -t modules vosk
pip3 install -t modules webvtt-py
cd private
wget https://alphacephei.com/vosk/models/vosk-model-de-0.21.zip
unzip vosk-model-de-0.21.zip
mv vosk-model-de-0.21 model
2021-10-21 16:59:01 +02:00
```
# Start
```
cd ~/web2py
python3 web2py
```
Assign administrator password.
# Usage
The application works only for logged-in users with the role 'manager' !
* Point your webbrowser to http://localhost:8000/transcription
* Register a user by clicking login->register on the top right side.
* Point your webbrowser to http://localhost:8000/transcription/appadmin
* Log in with the administrator password you assigned at startup.
* Click on db.auth_group -> New entry
* Create the new Entry 'manager'
* Go back to http://localhost:8000/transcription/appadmin
* Click on db.auth_membership -> New entry
2021-10-21 17:05:54 +02:00
* Click and select your user id in the first field and the new group 'manager' in the second field
If you already have an account with the appropriate permissions
* Point your webbrowser to http://localhost:8000/transcription
* Log in
* To upload new audio or video files, click on Manage media in the menu