Suprsonic

Text-to-Speech

Convert text to speech audio. Returns the speech as base64 MP3 audio with its sample rate and bit rate (read from the audio itself) and the voice used. Use for spoken voice or narration, up to 2,000 characters a call. For sound effects or music use sound-generate. Cost: 2 credits, charged only when a call succeeds.

post/v1/speech/synthesize

Request

  • Base URL
    https://suprsonic.ai
  • Auth
    HTTP bearer

Request body

textstring required
voice_modelstring nullable
voice_idstring nullable
providerstring nullable
stabilitynumber
similarity_boostnumber

Response

The call's envelope: success, data (the capability's result), metadata, and credits_used (0 when the call did not succeed).

successboolean required
credits_usedinteger

Changes

No recorded changes to this operation across all 1 revision of this API.