mysamai / mysam

An open "intelligent" assistant for the web that can listen to you and learn.
https://mysamai.com
GNU General Public License v3.0
621 stars 65 forks source link

Add a text input field in addition to the speech input #19

Open RomFouq opened 8 years ago

RomFouq commented 8 years ago

A text input field would enable to test the project without speaking or with a browser that doesn't yet support the Speech API.

daffl commented 8 years ago

I like it. I've been thinking of different ways to integrate (like a Slack chat client with text output). Maybe the first version of the text input can even work more like a chat window with the input at the bottom and whatever output at the top. There are some interface improvements I'm working on so I'll definitely mock this out and see how it works out.

SebMenozzi commented 8 years ago

Does the Speech API only work with Chrome ? Because I've tried with Firefox but it doesn't work. But I see in the code :

window.SpeechRecognition ||
  window.webkitSpeechRecognition ||
  window.mozSpeechRecognition ||
  window.msSpeechRecognition ||
  window.oSpeechRecognition;

So I am confused whether it should work or not.

daffl commented 8 years ago

According to Can I use speech recognition is supported in Firefox 44 and later using the media.webspeech.recognition.enable flag.