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.
voice_id
voice_config
type
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' },}); Copy
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' },});
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_idto speak with and an optionalvoice_config;typediscriminates the union.