Reference

textToSpeech

Generate an audio file from provided text using a speech model.
mindstudio.textToSpeech({ text }) → Result

Turns text into spoken audio with a speech model, returning a hosted audio URL. A model override selects the voice and model; for singing or instrumental audio, use generateMusic.

Parameters
text
string
RequiredThe text to convert to speech
intermediateAsset
boolean
speechModelOverride
object
Optional model configuration override. Uses the workflow's default speech model if not specified
Call from a method
import { mindstudio } from '@mindstudio-ai/agent';

const result = await mindstudio.textToSpeech({
  text: /* ... */
});