Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Latest commit

 

History

History
15 lines (10 loc) · 390 Bytes

README.md

File metadata and controls

15 lines (10 loc) · 390 Bytes

oddcast-tts-demo

Helper functions for generating MP3 URLs from text using oddcast.com's text-to-speech demo.

Usage

const { buildUrl, voices } = require('oddcast-tts-demo');

buildUrl('Hello, World.', voices.daniel);

// Produces:
// https://cache-a.oddcast.com/c_fs/3053a357f5d3a85a17182971a84007c9.mp3?engine=4&language=1&voice=5&text=Hello%2C%20World.&useUTF8=1