mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-28 12:21:32 +00:00
9246aff4e4
Boots a real PuterServer with an ElevenLabs apiKey configured, drives server.drivers.aiSpeech2Speech, and stubs global fetch (the real network egress for ElevenLabs). Covers getReportedCosts mirroring costs.ts, argument validation (test_mode bypass, missing actor 401, missing audio 400), the credit gate (402 before fetch), the success path (POST URL with voice id, default + override voice/model, optional knobs forwarded via FormData and search params, audio stream return shape), per-second metering math, and error mapping when ElevenLabs returns a non-2xx body. closes #2963