...
| Bloc de code |
|---|
|
ACTIVE_ENRICH = True
MODEL_COMPILE_DIR = "/path/to/project/django_projects/compile-model" |
Whisper
Sur les encodeurs :
| Bloc de code |
|---|
|
pip install git+https://github.com/openai/whisper.git |
Sur le frontal :
| Bloc de code |
|---|
|
pip3 install openai-whisper |
Exemple de configuration du custom/settings_local :
| Bloc de code |
|---|
|
TRANSCRIPTION_TYPE = "WHISPER"
TRANSCRIPTION_MODEL_PARAM = {
'WHISPER':{
'fr': {
'model': "small",
'download_root': "/pod-transcription/transcription/whisper/",
},
'en': {
'model': "small",
'download_root': "/pod-transcription/transcription/whisper/",
}
}
}
|
Voir détails ici pour le choix du modèle
Le small n'est pas plus gourmand que vosk et est déjà performant