...
Info |
---|
À présent, vous pouvez choisir d’installer un des 2 modèles STT ou Vosk. Il est toutefois conseillé d'utiliser Vosk. |
STT (Coqui Ai)
Il faut installer l'application dans l'environnement virtuel de Pod (stt==1.3.0)
Bloc de code |
---|
|
(django_pod3)pod@podv3:/usr/local/django_projects/podv3$ pip3 install stt |
Les fichiers peuvent être téléchargés sur le site du projet : https://coqui.ai/models
Bloc de code |
---|
pod@podv2pod@podv3:/usr/local/django_projects/transcription/model_fr/stt$ ll
-rw-r--r-- 1 pod pod 248 nov. 14 21:14 alphabet.txt
-rw-r--r-- 1 pod pod 189372825 nov. 15 09:12 model.pbmm
-rw-r--r-- 1 pod pod 1007576678 nov. 15 08:42 fr-cvfr-2-prune-kenlm.scorer
-rw-r--r-- 1 pod pod 47500492 nov. 15 08:54 model.tflite |
...
Bloc de code |
---|
|
(django_pod)$> python manage.py shell
Python 3.7.3
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> video_id = 1234
>>> from pod.video import transcript
>>> transcript.main_threaded_transcript(video_id) |
Vosk
video_id = 1234
>>> from pod.video import transcript
>>> transcript.main_threaded_transcript(video_id) |
Vosk
l faut installer l'application dans l'environnement virtuel de Pod (vosk==0.3.43)
Bloc de code |
---|
|
(django_pod3)pod@podv3:/usr/local/django_projects/podv3$ pip3 install vosk |
Les fichiers pour les modèles peuvent être téléchargés sur cette page : https://alphacephei.com/vosk/models.
...
Bloc de code |
---|
|
(django_podpod3) pod@:/path/to/project/django_projects/transcription/fr/vosk/$ wget https://alphacephei.com/vosk/models/vosk-model-fr-0.6-linto-2.2.0.zip |
...
Bloc de code |
---|
|
(django_podpod3) pod@:/path/to/project/django_projects/transcription/fr/vosk/$ sudo apt-get install unzip
(django_podpod3) pod@:/path/to/project/django_projects/transcription/fr/vosk/$ unzip vosk-model-fr-0.6-linto-2.2.0.zip |
...
Bloc de code |
---|
|
(django_podpod3) pod@:/path/to/project/django_projects/compile-model/fr$ wget https://alphacephei.com/vosk/models/vosk-model-fr-0.6-linto-2.2.0-compile.zip |
...
Bloc de code |
---|
|
(django_podpod3) pod@:/path/to/project/django_projects/compile-model/fr$ sudo apt-get install unzip
(django_podpod3) pod@:/path/to/project/django_projects/compile-model/fr$ unzip vosk-model-fr-0.6-linto-2.2.0-compile.zip |
Il faut seulement que la structure du dossier compile-model ressemble à cela :
(django_podpod3) pod@:/path/to/project/django_projects/compile-model
...