iris-tts
v1.2.0
Published
This is a node library that uses a _third party service_ to provide high quality text-to-speech. It can handle any amount of text.
Downloads
3
Readme
Iris TTS
This is a node library that uses a third party service to provide high quality text-to-speech. It can handle any amount of text.
Usage
import { open } from 'fs/promises'
import { getVoiceChunks } from './tts'
const iterator = getVoiceChunks('hola!', 'es-ES-AlvaroNeural')
;(async () => {
const f = await open('./audio.mp3', 'w+')
for await (const chunk of iterator) {
f.write(chunk)
}
})()