graph TD A[MediaAgent Start] --> B[Input: YouTube URL] B --> C[Download YouTube Video] C --> D[Extract Audio as MP3] D --> E[Convert MP3 to WAV] E --> F[Output: Raw WAV Audio] subgraph Configuration G[Audio Quality Settings: 44.1kHz, 16-bit] H[Temp File Management] end subgraph Error Handling I[Download Retry Logic] J[Format Validation] K[File Size Check] end C --> I I --> C D --> J E --> K K --> F style A fill:#f9f,stroke:#333 style F fill:#9ff,stroke:#333 style G fill:#ddd,stroke:#333 style H fill:#ddd,stroke:#333 style I fill:#fdd,stroke:#333 style J fill:#fdd,stroke:#333 style K fill:#fdd,stroke:#333