Skip to content
This repository has been archived by the owner on Mar 2, 2021. It is now read-only.
/ SpeechRobot Public archive

Web Audio Speech Synthesis and Speech Recognition Framework

License

Notifications You must be signed in to change notification settings

Zlynt/SpeechRobot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpeechRobot

Framework that facilitates the use of Text to Speech or Speech to Text

How to use

  1. Include the script in your page
<script src="/SpeechRobotDemo/SpeechRobot.js"></script>
  1. Create a new variable let speechRobot = new SpeechRobot();

  2. If you want to:

-> Make the browser speak

speechRobot.speak('en-US', 'Hello World!');

-> Make the browser understand the speech

//Start the speech to text

speechRobot.listen('en-US', (recognized_sentence) => {

console.log("I heard: "+recognized_sentence);

});

//Stop the speech to text after 5 seconds

setTimeout(() => {

speechRobot.stopListening();

}, 5000);

Releases

No releases published

Packages

No packages published