Create Files TTS Job
create_files_jobCreates a narrador files TTS job and returns jobId (uuid). Accepts either plain text (up to 500,000 characters) or an uploaded file reference. When passing text, fileName is optional (defaults to document.txt). When passing fileId, fileName is required. The job processes asynchronously: poll get_files_job until status is 'completed', then fetch audio with get_files_result. Consumes user credits. Not idempotent (creates a new job each time). Requires narrador:files scope (OAuth) or nrd_files_* API key. Use list_voices to get valid voiceId values.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Plain text content to convert to speech (1-500,000 characters). Mutually exclusive with fileId. If provided, fileName is optional. | |
| accent | Yes | Accent/language code (e.g. 'en-us', 'es-mx', 'fr-fr'). Must match one of the supported accent codes. Use the voice's defaultAccent if unsure. | |
| fileId | No | UUID of a previously uploaded file. Mutually exclusive with text. When provided, fileName is required. | |
| voiceId | Yes | TTS voice UUID from list_voices. Determines the speaker for audio generation. | |
| fileName | No | File name for the job (1-200 characters). Required when using fileId. Optional when using text (defaults to document.txt). |