D-ID Client SDK - v3.0.9
    Preparing search index...

    Type Alias TtsProvider

    TtsProvider:
        | MicrosoftTtsProvider
        | AzureOpenAiTtsProvider
        | ElevenlabsTtsProvider

    The provider object a speak script accepts.

    This is the type of TextStreamScript.provider. Pick the variant for the provider you want and give it the voice_id to speak with and an optional voice_config; type discriminates the union.

    import { Providers } from '@d-id/client-sdk';

    const speak = await agentManager.speak({
    type: 'text',
    input: "Hi! I'm Alice!",
    provider: { type: Providers.Microsoft, voice_id: 'en-US-JennyNeural' },
    });