Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

actions-on-google-speech-markdown-plugin

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

actions-on-google-speech-markdown-plugin

This plugin makes it easier to use [Speech Markdown](https://github.com/speechmarkdown/speechmarkdown-js) in the [Actions on Google library](https://github.com/actions-on-google/actions-on-google-nodejs).

  • 1.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

Speech Markdown Actions on Google plugin

This plugin makes it easier to use Speech Markdown in the Actions on Google library.

Currently, plugin supports only Actions built with Dialogflow.

NPM Version

Setup Instructions

Install the plugin with npm install actions-on-google-speech-markdown-plugin.

Usage

This plugin overrides the methods conv.ask and conv.close to parse speech markdown content if the response type is a string. If the string is plain text, the parser should not make any changes.

const { dialogflow } = require('actions-on-google')
const { speechMarkdownHelper } = require('actions-on-google-speech-markdown-plugin')

const app = dialogflow()
    .use(speechMarkdownHelper())

app.intent('Default Welcome Intent', conv => {
    const markdown = `Sample [3s] speech [250ms] markdown`;
    conv.ask(markdown)
    // Should output
    // "<speak>Sample <break time="3s"/> speech <break time="250ms"/> markdown</speak>"
})

References & Issues

Make Contributions

Please read and follow the steps in the CONTRIBUTING.md.

License

See LICENSE.

Terms

Your use of this sample is subject to, and by using or downloading the sample files you agree to comply with, the Google APIs Terms of Service.

FAQs

Package last updated on 14 Feb 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc