1.0.1 • Published 3 years ago

rhetorician v1.0.1

Weekly downloads
12
License
-
Repository
-
Last release
3 years ago

Rhetorician

Rhetorician is a svelte wrapper around the experimental Web Speech API. It provides UI components for speech recognition and text to speech.

Screenshot from 2021-01-10 22-01-46

Usage

Install rhetorician from NPM

yarn add rhetorician

Import the CSS into your project

import "rhetorician/bundle.css"

Import the components into your project.

<script>
import { SpeechRecognition, TextToSpeech } from "rhetorician"
  
let transcript
</script>
  
<SpeechRecognition bind:transcript />
  
<textarea bind:value={transcript} />
  
<TextToSpeech {transcript} /> 

Local Dev & Contributing

To develop rhetorician locally:

Install the dependencies...

cd rhetorician
yarn

...then start Rollup

npm run dev

Navigate to localhost:5000. You will see the example application and can play around with it by recording speech and playing it back using the 2 components rhetorician provides.