Skip to content

NickRTR-Packages/svelte-speech

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

svelte-speech

  1. npm install svelte-speech
  2. in your script add: import SvelteSpeech from "svelte-speech";
  3. In your HTML add: <SvelteSpeech text={"Hello World"} bind:play />

Optional properties

  • volume: range: 0 - 1
  • Pitch: range 0 - 2
  • Rate (speed): 0.2 - 2
  • bind:voices: bind all available voices to a variable
  • voice=voices[indexOfSelectedVoice]: select one of the available voices

About

Svelte package for easier interaction with the SpeechSynthesis Web API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published