Généré le 15/11/2026 01:03

đŸŽ€ VÉRIFICATION TTS/STT — 9 novembre 2026

Date : Samedi 9 novembre 2026 — 20:35 AST (UTC-4)
SystĂšme : Remoat Telegram Bot (PID 4868)
Durée analyse : 8 minutes
Statut : ⚠ STT PRIMAIRE HORS SERVICE — FALLBACKS ACTIFS


📊 RÉSUMÉ EXÉCUTIF

Bot Remoat : ✅ Actif (PID 4868, uptime 39 min)
TTS (SynthĂšse vocale) : ✅ OpĂ©rationnel (Edge TTS)
STT (Reconnaissance vocale) : ⚠ Service primaire Ă©puisĂ©, fallbacks actifs

ProblÚme critique : Quota ElevenLabs Scribe épuisé (4/30000 crédits)
Solution active : Cascade automatique vers Google Cloud STT


🎯 TTS (TEXT-TO-SPEECH) — SYNTHÈSE VOCALE

État Global : ✅ OPÉRATIONNEL

Moteur actif : Edge TTS (via Python CLI edge-tts)
Version : 7.3.1+
Méthode : CLI Python rany2/edge-tts

Configuration

Cascade TTS :
1. ElevenLabs API (si clé présente ET voiceTtsProvider === 'elevenlabs')
2. Edge TTS ← Actif actuellement (fallback par dĂ©faut)

ClĂ© ElevenLabs : ✅ PrĂ©sente (sk_33f2e8...)
Provider configuré : Edge TTS (config par défaut)

Tests Récents (logs)

[19:55:18] [VoiceSynthesis] Using Edge TTS (via Python edge-tts CLI).
[19:55:29] [Bot] Converting response to OGG/Opus for native voice note...
[19:55:32] [Bot] Native voice note sent successfully.

RĂ©sultat : ✅ SynthĂšse rĂ©ussie, message vocal envoyĂ©

Performance

Détails Techniques

Module npm : msedge-tts présent mais non utilisé
Raison : Microsoft a bloqué clients non officiels (17/12/2025)
Solution : CLI Python officiel edge-tts 7.3.1+

Nettoyage texte : 17 étapes de preprocessing
- Suppression markdown, HTML, emojis
- Normalisation ponctuation
- Optimisation pour fluidité vocale


đŸŽ™ïž STT (SPEECH-TO-TEXT) — RECONNAISSANCE VOCALE

État Global : ⚠ SERVICE PRIMAIRE ÉPUISÉ

Statut : Fallbacks actifs, service dégradé mais fonctionnel

🚹 ProblĂšme Critique : Quota ElevenLabs ÉpuisĂ©

Service : ElevenLabs Scribe API
Quota : 30000 crédits/mois
Utilisé : 29996 crédits
Restant : 4 crĂ©dits ⚠

DerniĂšres erreurs :

[19:52:28] [ERROR] ElevenLabs transcription failed (status 401): 
{"detail": {
  "type": "invalid_request",
  "code": "quota_exceeded",
  "message": "This request exceeds your quota of 30000. You have 4 
  credits remaining, while 78 credits are required for this request.",
  "status": "quota_exceeded"
}}

[19:55:38] [ERROR] ElevenLabs transcription failed (status 401):
{"detail": {
  "message": "This request exceeds your quota of 30000. You have 4 
  credits remaining, while 78 credits are required for this request."
}}

Circuit-breaker : 3 minutes de cooldown aprÚs échec
État : ElevenLabs en pause, cascade vers fallbacks

Cascade STT ComplĂšte

Mode par défaut : Cascade automatique avec circuit-breaker

  1. ElevenLabs Scribe API (primaire)
    - Statut : ❌ QUOTA ÉPUISÉ
    - Cooldown : 3 minutes aprÚs échec
    - DerniĂšre tentative : 19:55:38
    - Prochaine réactivation : Renouvellement mensuel quota

  2. Google Cloud Speech-to-Text (fallback 1)
    - Statut : ⚠ TIMEOUT/PLANTAGE SUSPECTÉ
    - DerniĂšre tentative : 19:55:38
    - Pas de résultat enregistré
    - Bot redémarré 18s aprÚs (19:56:21)
    - Script : C:\ASSISTANT_IA\tools\google_stt_transcribe.py

  3. Deepgram Nova-3 (fallback 2)
    - Statut : ✅ Disponible
    - Testé : 08/08/2026
    - Performance : ~3s par transcription
    - Non utilisĂ© rĂ©cemment (cascade s'arrĂȘte avant)

  4. Whisper Local (faster_whisper) (fallback final)
    - Statut : ✅ Disponible
    - Script : C:\ASSISTANT_IA\tools\faster_whisper_transcribe.py
    - Performance : ~12s par transcription
    - Filet de sécurité ultime

Test Réussi Récent

Timestamp : 19:54:54 - 19:54:55
Audio : 34834 bytes (.oga)
RĂ©sultat : ✅ Transcription rĂ©ussie via ElevenLabs

[19:54:54] Downloaded voice message (34834 bytes)
[19:54:54] Transcribing via ElevenLabs Scribe API...
[19:54:55] ElevenLabs Scribe transcribed: "Bonjour, est-ce que 
tu peux me dire qui est-ce que tu es ? Puis qu'est-ce que tu peux 
faire pour moi..."

Analyse : Message court (< 4s) passé avant épuisement quota

Échec SubsĂ©quent

Timestamp : 19:55:36 - 19:55:38
Audio : 617548 bytes (.oga), 116 secondes
RĂ©sultat : ❌ ElevenLabs quota dĂ©passĂ© → Google STT timeout

[19:55:36] Downloaded voice message (617548 bytes, 116s)
[19:55:36] Transcribing via ElevenLabs Scribe API...
[19:55:38] [ERROR] ElevenLabs quota_exceeded (4 crédits, 78 requis)
[19:55:38] [WARN] ElevenLabs en pause 3 min
[19:55:38] Transcribing via Google Cloud Speech-to-Text...
[pas de suite dans logs]
[19:56:21] Bot redémarré (18s aprÚs appel Google STT)

Analyse : Google STT a probablement planté ou timeout sur audio long


🔧 CONFIGURATION ACTUELLE

Clés API (présence vérifiée)

Service Clé Statut
ElevenLabs sk_33f2e8... ✅ PrĂ©sente
Google Cloud Compte service ✅ ConfigurĂ©
Deepgram (optionnel) ❓ Non vĂ©rifiĂ©

Fichiers Configuration

Remoat .env : C:\ASSISTANT_IA\Remoat\.env
Scripts Python :
- Google STT : C:\ASSISTANT_IA\tools\google_stt_transcribe.py
- Whisper : C:\ASSISTANT_IA\tools\faster_whisper_transcribe.py

Circuit-Breaker

Cooldown : 3 minutes (réduit de 24h le 05/11/2026)
Providers suivis : ElevenLabs, Google, Deepgram
Mécanisme : Skip automatique si échec < 3 min

Code :

const STT_COOLDOWN_MS = 3 * 60 * 1000;  // 3 minutes

📈 STATISTIQUES UTILISATION

ElevenLabs Scribe

Quota mensuel : 30000 crédits
Consommé : 29996 crédits (99.99%)
Restant : 4 crédits (0.01%)
Coût moyen : ~78 crédits pour 116 secondes audio

Calcul :
- 116 secondes = 78 crédits requis
- ~0.67 crédits/seconde
- Quota restant = ~6 secondes audio

Google Cloud STT

Appels récents : 2 (19:52:28, 19:55:38)
Résultats : 0 succÚs enregistrés
ProblÚme : Timeout/plantage suspecté
Latence : > 18 secondes (anormal)


⚠ PROBLÈMES IDENTIFIÉS

P0 — Critique

#1 : Quota ElevenLabs Scribe épuisé
- GravitĂ© : 🔮 Critique
- Impact : Service STT primaire indisponible
- Restant : 4 crédits (~6 secondes audio)
- Solution : Renouvellement quota mensuel OU switch fallback

#2 : Google Cloud STT instable
- GravitĂ© : 🟠 Haute
- Impact : Fallback #1 ne fonctionne pas
- SymptĂŽme : Timeout > 18s, plantage bot
- Solution : Investigation script Python + timeout adapté

P1 — Haute

#3 : Pas de fallback automatique vers Deepgram
- GravitĂ© : 🟡 Moyenne
- Impact : Cascade s'arrĂȘte Ă  Google STT
- Observation : Deepgram jamais atteint récemment
- Solution : Vérifier cascade complÚte fonctionne


✅ POINTS POSITIFS

  1. ✅ TTS 100% opĂ©rationnel (Edge TTS fiable)
  2. ✅ Circuit-breaker actif (protection anti-spam Ă©checs)
  3. ✅ Cascade fallback en place (4 moteurs STT)
  4. ✅ Bot rĂ©silient (redĂ©marre automatiquement)
  5. ✅ Messages courts fonctionnent (< 4s audio OK)

🎯 RECOMMANDATIONS

Court Terme (Urgent)

#1 : Investiguer Google Cloud STT

python C:\ASSISTANT_IA\tools\google_stt_transcribe.py <test_audio.oga>

#2 : Tester fallback Deepgram

# Forcer Deepgram dans config
voiceSttProvider: 'deepgram'

#3 : Activer Whisper local en urgence

# Si Google/Deepgram instables
# Whisper = fallback fiable mais lent (~12s)

Moyen Terme (Recommandé)

#4 : Surveiller renouvellement quota ElevenLabs
- Date probable : Début de mois prochain
- Alerter si < 1000 crédits restants
- Prévoir budget augmentation quota

#5 : Optimiser cascade STT
- Ajouter timeout explicites (30s max)
- Logging détaillé chaque étape
- Métriques performance par provider

#6 : Documenter coûts STT
- ElevenLabs : 0.67 crédits/seconde
- Google Cloud : Tarif à vérifier
- Deepgram : Tarif à vérifier

Long Terme (Optimisation)

#7 : Stratégie multi-provider
- Équilibrage de charge ElevenLabs/Google
- Quota partagé intelligent
- Fallback préventif avant épuisement

#8 : Cache transcriptions
- MĂȘme audio = mĂȘme transcription
- Hash fichier audio
- Économie quota significative


📊 MÉTRIQUES FINALES

Métrique Valeur Statut
Bot Remoat Actif (PID 4868) ✅
TTS Edge OpĂ©rationnel ✅
STT ElevenLabs 4/30000 crĂ©dits ❌
STT Google Timeout suspect ⚠
STT Deepgram Non testĂ© rĂ©cent ❓
STT Whisper local Disponible ✅
Cascade fallback Partielle ⚠
Circuit-breaker Actif 3 min ✅

🎯 VERDICT FINAL

⚠ SERVICE DÉGRADÉ MAIS FONCTIONNEL

TTS : ✅ Excellent (Edge TTS fiable, latence 11s)
STT : ⚠ Service primaire Ă©puisĂ©, fallback #1 instable

Actions urgentes :
1. Investiguer timeout Google Cloud STT
2. Tester fallback Deepgram
3. Surveiller renouvellement quota ElevenLabs

Impact utilisateur :
- Messages courts (< 6s) : ❌ BloquĂ©s (quota Ă©puisĂ©)
- Messages longs : ⚠ Instables (Google STT timeout)
- Synthùse vocale : ✅ Aucun impact

SystÚme reste utilisable mais nécessite intervention pour STT.


Rapport gĂ©nĂ©rĂ© le 9 novembre 2026 — 20:35 AST (UTC-4)
Vérification TTS/STT complétée
Service dégradé, actions recommandées