Files
RTC_BL_PHONE/docs/fiche_agent_audio_tools.md
Clément SAILLANT b89cda78c2 Add telephony and web server functionality
- Implement TelephoneSFPManager to manage telephony service interactions.
- Create TelephonyService class to handle telephony states and actions.
- Develop WebServerManager for handling HTTP requests and managing contacts.
- Add HTML, CSS, and JavaScript files for the web UI to interact with the telephony system.
- Introduce WifiManager for managing WiFi connections.
- Implement unit tests for telephony features and state transitions.
- Ensure proper input validation and error handling in web server routes.
2026-02-18 03:37:02 +01:00

1.6 KiB
Raw Permalink Blame History

Fiche dajout agent — Librairie Audio Tools (ESP32)

Objectif

Permettre lintégration, la gestion et la validation de la librairie Audio Tools pour lecture MP3 et audio avancé sur ESP32 via PlatformIO.


1. Ajout dans platformio.ini

  • Ajouter dans la section [env:esp32dev] :
lib_deps =
    https://github.com/pschatzmann/arduino-audio-tools.git

2. Installation automatique

  • Lancer pio run pour télécharger et compiler la librairie.
  • Vérifier labsence derreurs de compilation.

3. Exemple dutilisation (MP3)

#include <AudioTools.h>
#include <AudioLibs/AudioSourceMP3.h>
#include <SD.h>

AudioSourceMP3 mp3;
AudioOutputI2S i2s;
AudioPlayer player(mp3, i2s);

void setup() {
  SD.begin();
  player.begin();
  player.play("/test.mp3");
}

void loop() {
  player.loop();
}

4. Points de validation

  • Test lecture MP3 sur codec I2S (PCM5102, ES8388, DAC interne).
  • Vérifier routage audio, volume, mute.
  • Logs série pour débogage.

5. Documentation


Agent Audio embarqué :

  • Surveille lintégration, la compatibilité hardware, la validation fonctionnelle.
  • Documente les tests, les limitations, les bugs.

Agent PlatformIO :

  • Garantit la cohérence du fichier platformio.ini.
  • Valide linstallation et la compilation.

Agent Firmware :

  • Intègre lexemple dans le firmware.
  • Ajoute tests unitaires/mock si besoin.

Synergie agents :

  • Audio ↔ Firmware ↔ PlatformIO ↔ Documentation
  • Validation croisée hardware/logiciel.

Version : 2026-02-17