pandora_transcribe/README.md

42 lines
1 KiB
Markdown
Raw Normal View History

2024-07-07 15:32:37 +01:00
# pandora_transcribe
use whisper_timestamped to add automatic transcriptions to pan.do/ra
## installation
cd /srv/pandora/pandora
git clone https://code.0x2620.org/0x2620/pandora_transcribe transcribe
add "transcribe" to LOCAL_APPS in local_setttings.py
2024-07-07 15:46:41 +01:00
## install whisper_timestamped
2025-01-24 10:18:25 +05:30
apt install portaudio19-dev
2024-07-07 15:46:41 +01:00
python3 -m venv venv /opt/whisper-timestamped/
/opt/whisper-timestamped/bin/pip install \
2025-01-24 11:50:41 +05:30
torch==2.3.1+cpu \
torchaudio==2.3.1+cpu \
2024-07-07 15:46:41 +01:00
-f https://download.pytorch.org/whl/torch_stable.html
2025-01-24 10:18:25 +05:30
/opt/whisper-timestamped/bin/pip install whisper-timestamped transformers auditok
2024-07-07 15:32:37 +01:00
## configuration
2024-07-07 15:34:19 +01:00
add a user called subtitles and create 2 lists for that user: Queue and Transcribed
alternatively see options for `./manage.py transcribe` to use another user or list name
2024-07-07 15:32:37 +01:00
## run
2024-07-07 15:34:19 +01:00
in a terminal run
2024-07-07 15:32:37 +01:00
./manage.py transcribe
## install a service
copy systemd/service/pandora-transcribe.service to /etc/systemd/system/pandora-transcribe.service and
systemctl enable --now pandora-transcribe.service
2024-07-07 15:32:37 +01:00