Skip to content

Commit

Permalink
Release v0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeno Rocha committed Apr 26, 2014
1 parent 97a71e3 commit 8421a03
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "voice-elements",
"version": "0.1.1",
"version": "0.1.2",
"description": "Web Speech API wrapper that allows you to do voice recognition (speech to text) and speech synthesis (text to speech) using Polymer.",
"authors": [
"Zeno Rocha <[email protected]>"
Expand Down
10 changes: 8 additions & 2 deletions dist/voice-recognition.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,14 @@

/* -- Lifecycle ------------------------------------------------- */
created: function() {
if ('webkitSpeechRecognition' in window) {
this.recognition = new window.webkitSpeechRecognition();
var SpeechRecognition = window.SpeechRecognition ||
window.webkitSpeechRecognition ||
window.mozSpeechRecognition ||
window.msSpeechRecognition ||
window.oSpeechRecognition;

if (SpeechRecognition !== undefined) {
this.recognition = new SpeechRecognition();
}
else {
console.error('Your browser do not support the Web Speech API');
Expand Down

0 comments on commit 8421a03

Please sign in to comment.