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

    Type Alias TtsProvider

    The provider object a speak script accepts: any of the four text-to-speech providers.

    This is the type of TextStreamScript.provider. Pick the variant for the provider you want, give it the voice_id to speak with and, except for AmazonTtsProvider, 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' },
    });