OpenRouter Text-to-Speech Synthesize speech via using . The endpoint is OpenAI-compatible, so the OpenAI SDKs work by pointing them at . Requires (get one at https://openrouter.ai/keys). If unset, stop and ask. One call, raw bytes back The response body is the audio bytes — write them to a file with the extension matching . It is not JSON ; error responses are, so only try to parse JSON when the status is non-200. Two response headers are worth keeping: - — for mp3; for pcm it includes the sample rate and channel count, e.g. . Parse these parameters if you need to wrap the raw bytes into a WA…