npm install
let tts = MsTts.factory(config.MS_TTS_KEY, config.MS_TTS_REGION);
let tts = GoogleTts.factory()
Vbee limit by request per ip for free plan. So we use proxy rotation to avoid the limitation.
let buyProxies = new BuyProxies(config.BUY_PROXIES_PID, config.BUY_PROXIES_KEY);
let proxies = await buyProxies.proxies();
let tts = new VbeeTts(new RandomProxyRotation(proxies));
let tts = new ZaloTts(config.ZALO_KEY);
let tts = new Vpnt(config.VPNT_ACCESS_TOKEN, config.VPNT_TOKEN_ID, config.VPNT_TOKEN_KEY)
Create a pool of tts services. This helpful while you want to avoid limitation by using difference keys for a same tts services.
let tts = new TtsPool(
GoogleTts.factory(),
GoogleTts.factory(),
GoogleTts.factory(),
GoogleTts.factory(),
GoogleTts.factory()
);
Uses Autoturn when you want to use difference voices for different contexts. One for storyteller and another for conversation context.
const autoturn = new Autoturn(storytellerVoice, conversationVocie);