Skip to content

dotuancd/truyen-audio

Repository files navigation

INSTALLATION

npm install

TTS SERVICES

Microsoft TTS

let tts = MsTts.factory(config.MS_TTS_KEY, config.MS_TTS_REGION);

Google TTS

let tts = GoogleTts.factory()

Vbee TTS

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));

Zalo TTS

let tts = new ZaloTts(config.ZALO_KEY);

VNPT TTS

let tts = new Vpnt(config.VPNT_ACCESS_TOKEN, config.VPNT_TOKEN_ID, config.VPNT_TOKEN_KEY)

TTS POOL

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()
);

Autoturn

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);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published