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

@paulbarre/vuepress-plugin-speech

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@paulbarre/vuepress-plugin-speech

VuePress plugin for Web Speech API

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

VuePress plugin for Web Speech API

🚧 Documentation in progress

⚙️ A new component for easy settings is coming soon

Installation

npm i @paulbarre/vuepress-plugin-speech

Config

Add the plugin to your config file:

.vuepress/config.js

module.exports = {
  plugins: [
    [
      '@paulbarre/speech',
      { lang: 'fr-FR' }
    ]
  ]
}
OptionTypeDefaultDetails
langstringundefinedSpecify the language to select the voices. BCP 47 language tag.

$speech

All your components have access to the $speech property.

$speech.voice: The current voice

$speech.voices: The available voices

$speech.setVoice(voiceURI): Pass the URI of the voice you want to set

$speech.speak(text): Synthesis a text by the current voice

tts component

This plugin installs a component you can add into your Markdown files to show texts playable.

# My page title

Some paragraph with a text that can be synthesize: <tts text="Hello folks!" />

tts has two props:

text: The text to show and speak if alt is undefined.

alt: The true text to speak. It allows you to show some text but read another.

<tts text="Hello" alt="Goodbye" />

Keywords

FAQs

Package last updated on 06 May 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