Hierarchy

  • APIResource
    • Speech

Constructors

Methods

Constructors

  • Parameters

    Returns Speech

Methods

  • Generates audio from the input text.

    Parameters

    Returns APIPromise<Response>

    const speech = await client.audio.speech.create({
    input: 'input',
    model: 'string',
    voice: 'ash',
    });

    const content = await speech.blob();
    console.log(content);