0.4.13 • Published 1 month ago

@fonoster/pollytts v0.4.13

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

Voice application plugin that converts text into natural-sounding speech using an API powered by Amazon’s AI technologies.

Installation

npm install @fonoster/pollytts

or

yarn add @fonoster/pollytts

Usage

const { VoiceServer } = require("@fonoster/voice");
const PollyTTS, { Voice } = require("@fonoster/pollytts");

const voiceServer = new VoiceServer();

// Set the server to use Polly
const speechConfig = { keyFilename: "./amazon.json" };
voiceServer.use(new PollyTTS(speechConfig));

voiceServer.listen(async(req, res) => {
  console.log(req);
  await res.answer();
  await res.say("Hi! This is polly text to speech", { voice: Voice.BIANCA });
  await res.hangup();
});
0.5.4

1 month ago

0.5.5

1 month ago

0.5.3

1 month ago

0.5.1

2 months ago

0.5.0

2 months ago

0.4.22

2 months ago

0.4.20

2 months ago

0.4.19

2 months ago

0.4.17

2 months ago

0.4.18

2 months ago

0.4.15

2 months ago

0.4.13

2 months ago

0.4.14

2 months ago

0.4.12

2 months ago

0.2.21

2 years ago

0.2.20

2 years ago