/jovo-plugin-speechmarkdown

Jovo Plugin for Speech Markdown

Primary LanguageTypeScriptMIT LicenseMIT

jovo-plugin-speechmarkdown

Install SpeechMarkdown plugin into your Jovo project:

npm install jovo-plugin-speechmarkdown --save

Use the plugin in the app.js:

const { SpeechMarkdown } = require('jovo-plugin-speechmarkdown');


app.use(
    // ... base imports
    new SpeechMarkdown()
);

Or app.ts:

import { SpeechMarkdown } from 'jovo-plugin-speechmarkdown';

app.use(
    // ... base imports
    new SpeechMarkdown()
);

Usage

Tell:

this.tell('Sample [3s] speech [250ms] markdown');

Ask:

this.ask('Sample [3s] speech [250ms] markdown', 'reprompt [250ms] markdown');

In general:

const speechMarkdownSSML = this.$speechMarkdown.toSSML('Sample [3s] speech [250ms] markdown');