ai_voice_generator_create_audio
Generate speech from text. Each character costs 0.1 credits. The cost is rounded up to the nearest whole number.
MCP guidance:
This starts an async audio generation job and returns
idpluscredits_chargedimmediately. If the user wants the finished result, call thewait_for_audio_projecthelper with the returned id, or poll the matchingGET /v1/audio-projects/{id}endpoint until status iscomplete,error, orcanceled. Completed projects includedownloadswith direct URLs. The custom wait helper also returnsexact_download_urlsseparately from expiration metadata.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Give your audio a custom name for easy identification. | Voice Generator - dateTime |
| style | Yes | The content used to generate speech. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Unique ID of the audio. Use it with the [Get audio Project API](https://docs.magichour.ai/api-reference/audio-projects/get-audio-details) to fetch status and downloads. | |
| credits_charged | Yes | The amount of credits deducted from your account to generate the audio. We charge credits right when the request is made. If an error occurred while generating the audio, credits will be refunded and this field will be updated to include the refund. |