Skip to content

neomars/alice

Repository files navigation

Logo

A.L.I.C.E.: Analyse Linguistique Interactive et Créative d'Écrits

A Simple Whisperx|pyannote interface in php / symfony /twig + bootstrap You need mariadb too ;)

License

MIT

Used By

This project is used by the following companies:

Authors

Deployment

To prepare environment for A.L.I.C.E. run

//if you use apache2
sudo a2enmod rewrite
sudo a2enmod ssl

//php 8.2
sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt install php8.2
sudo a2dismod php8.1
sudo a2enmod php8.2
  
//
sudo apt install php8.2-calendar php8.2-ctype php8.2-exif php8.2-ffi php8.2-fileinfo php8.2-ftp php8.2-gettext php8.2-iconv php8.2-intl php8.2-mbstring php8.2-phar php8.2-posix php8.2-readline php8.2-shmop php8.2-sockets php8.2-sysvmsg php8.2-sysvsem php8.2-sysvshm php8.2-tokenizer

//ffmpeg
sudo apt-get install sox libsndfile1 ffmpeg
sudo apt install cython3

//restart apache2
sudo systemctl restart apache2

//install mysql/mariadb
sudo apt install php8.2-mysql
sudo apt install php8.2-xml

//install composer
sudo apt install composer
sudo composer install

//Mariadb as admin
sudo mariadb
//create database
CREATE database whisper;
GRANT ALL ON whisper.* TO whisper@localhost IDENTIFIED BY ‘mdp’ WITH GRANT OPTION;
exit;
//import alice data
mysql -u whisper -p  whisper < alice.sql

//create password
//go in whisper folder and then...
//create a password hash
php bin/console security:hash-password
//create admin account
//connect to mysql (mariadb)
INSERT INTO user (email, roles, password, is_verified)
VALUES ('[email protected]', '["ROLE_ADMIN"]', 'password hash', 1);

To deploy whisperx & pyannote run

sudo apt install python3-pip

pip install hydra-core --upgrade --pre
pip install inflect
pip install editdistance
pip install lhotse
pip install youtokentome
pip install webdataset
pip install datasets
pip install jiwer
pip install IPython
pip install deepmultilingualpunctuation
pip install torchaudio
pip install pyannote.audio
pip install text-unidecode

To deploy A.L.I.C.E. run

//create folder not in your /var/www and then...
pip install git+https://github.com/m-bain/whisperx.git
cd whisperX
pip install -e .

//deploy A.L.I.C.E.
git clone ...

To deploy Alpaca. Just copy bin have made "alpaca_fr_gpu" into process file.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published