Vocabulaire personnalisé
Ajoutez des termes médicaux spécifiques pour améliorer la précision de la transcription.
Pourquoi utiliser un vocabulaire personnalisé ?
- ✅ Améliore la précision pour la terminologie médicale
- ✅ Réduit les erreurs de transcription
- ✅ Adapté à votre spécialité (radiologie, cardiologie, etc.)
Configuration
Exemple de base
{
"type": "configure",
"config": {
"custom_vocabulary": [
"IRM",
"scanner",
"échographie",
"biopsie",
"mammographie",
"angiographie",
"tomodensitométrie"
]
}
}Avec boost (priorité)
{
"type": "configure",
"config": {
"custom_vocabulary": [
"IRM",
"scanner",
"échographie"
],
"custom_vocabulary_boost": 0.8
}
}Le paramètre custom_vocabulary_boost (0.0 à 1.0) définit la priorité :
- 0.8-1.0 : Priorité très élevée
- 0.5-0.7 : Priorité élevée
- 0.0-0.4 : Priorité normale
Vocabulaire par spécialité
Radiologie
{
"custom_vocabulary": [
"IRM", "scanner", "échographie", "mammographie",
"angiographie", "tomodensitométrie", "scintigraphie",
"radiographie", "fluoroscopie", "échographie doppler"
]
}Cardiologie
{
"custom_vocabulary": [
"électrocardiogramme", "échocardiographie", "holter",
"test d'effort", "coronarographie", "angioplastie"
]
}Général
{
"custom_vocabulary": [
"consultation", "examen clinique", "diagnostic",
"traitement", "prescription", "ordonnance"
]
}Bonnes pratiques
- ✅ Limiter à 100-200 termes pour optimiser les performances
- ✅ Inclure les acronymes courants (IRM, ECG, etc.)
- ✅ Utiliser les termes exacts (orthographe correcte)
- ✅ Adapter au contexte (spécialité, région)
- ✅ Tester et ajuster selon les résultats
Orthographe personnalisée (Custom Spelling)
Correction automatique des termes médicaux :
{
"type": "configure",
"config": {
"custom_spelling": {
"IRM": "IRM",
"I.R.M.": "IRM",
"echographie": "échographie",
"echographie": "échographie"
}
}
}Exemples d’utilisation
Cas d’usage : Dictée de compte-rendu radiologique
const config = {
type: "configure",
config: {
language: "fr",
specialty: "radiology",
custom_vocabulary: [
"IRM", "scanner", "échographie", "mammographie",
"angiographie", "tomodensitométrie", "scintigraphie"
],
custom_vocabulary_boost: 0.9
}
};
ws.send(JSON.stringify(config));Résultat : Meilleure précision pour les termes techniques.
Intégration avec le SDK React
import { useEphia } from '@ephia/transcribe-sdk';
function RadiologyTranscription() {
const { start, finalText } = useEphia({
websocketUrl: 'wss://api.ephia.ai',
apiPrefix: '/api/v1',
token: 'YOUR_API_KEY',
specialty: 'radiology',
customVocabulary: [
'IRM', 'scanner', 'échographie', 'mammographie'
],
customVocabularyBoost: 0.9
});
return (
<div>
<button onClick={start}>Démarrer</button>
<p>{finalText}</p>
</div>
);
}Performance
L’utilisation d’un vocabulaire personnalisé peut légèrement augmenter la latence (10-20ms). Pour une latence minimale, utilisez un vocabulaire limité (50-100 termes) ou réduisez le custom_vocabulary_boost.