D-ID Client SDK - v3.0.0-0
    Preparing search index...

    Interface AudioStreamScript

    A script that makes the agent lip-sync an audio file you host, with no text-to-speech involved.

    The other payload speak() accepts. Use it when the audio already exists — a recording, or speech you synthesized yourself — instead of having a provider generate it from text.

    const speak = await agentManager.speak({
    type: 'audio',
    audio_url: 'https://www.yourwebsite.com/audio.mp3',
    });
    interface AudioStreamScript {
        audio_url: string;
        type: "audio";
    }
    Index
    audio_url: string

    URL of the audio file the agent lip-syncs to.

    The URL has to be publicly reachable, since the file is fetched server-side rather than uploaded from the browser. The file may be at most 15 MB.

    "https://www.yourwebsite.com/audio.mp3"
    
    type: "audio"

    Which kind of script this is. Always audio for this variant; a TextStreamScript carries text instead.