Check out my post from last week to see how I feel about the second book in this series. |
Monday, September 30, 2013
Books I Read Last Week
Whoops, sorry was traveling last week and didn't get a chance to pull together a post.
Friday, September 20, 2013
Books I've Read This Week
I always like these Lost Fleet novels. They are like popcorn, quick and enjoyable reads. They are fun for anyone who enjoys military sci-fi. |
Saturday, September 14, 2013
Book's I've Read This Week
The residents of the town have to deal with their loved ones coming back to life. The government quarantining the town to prevent the "possible" infection from spreading. It seems like the government has watched a lot of George Romero movies and that has informed their opinion of what to do. As well the religious calamity arising from the dead walking. This is a really creepy feeling graphic novel and another great work from Seeley and Norton. |
Friday, September 6, 2013
Books I've Read This Week
I enjoyed the book but I did get skived out at one point where the female lead, Caitlin a 15 year old girl, is about to become "sexually active". I'm not sure why it bothered me so much but it may have something to do with that 8 year old daughter I have and wanting to stick my head in the sand. |
The book does a nice job of filling in the background of the man who is so important to the story but I did feel like it stalled the narrative a bit. By the end of the book we are ready for the fight to between Jardir and Arlen Bales. Only one of they can be the Deliverer and it rightly identifies that the world will remain split as you can't have two generals so one of them has to go. |
Wednesday, September 4, 2013
My SpeechShim for Desktop Development of Speech Recognition and TTS Apps
So I've been working on some plugins for PhoneGap to enable people to develop their apps with Speech Recognition and Text to Speech functionality. I've been following this specification and while it isn't on track to be adopted by the W3C anytime soon it does have two big benefits:
1) The speech recognition bit is already available in Chrome.
2) The specification is "sane". I guess it helps when only a couple of people are credited as authors instead of a committee.
One of the things that has been bugging me for awhile is the inability to develop these type of apps on the desktop using the same API. Yes, as I said above the speech rec bit is available in Chrome but the objects have the "webkit" prefix and there is not TTS support. So during one of the Ottawa Ruby project nights I set out to write a shim that would give everyone the ability to use the same API that will be available from the PhoneGap plugins on their desktop.
Basically that is what SpeechShim is in a nutshell. When you add speechshim.js into your web app you will be able to access the "SpeechRecogntion" object instead of needing to prefix it like "webkitSpeechRecognition". As well if you combine it with the speak.js project the speechshim.js code will add the methods necessary so you can use the SpeechSynthesis interface.
To get up and running you will need:
1) The speech recognition bit is already available in Chrome.
2) The specification is "sane". I guess it helps when only a couple of people are credited as authors instead of a committee.
One of the things that has been bugging me for awhile is the inability to develop these type of apps on the desktop using the same API. Yes, as I said above the speech rec bit is available in Chrome but the objects have the "webkit" prefix and there is not TTS support. So during one of the Ottawa Ruby project nights I set out to write a shim that would give everyone the ability to use the same API that will be available from the PhoneGap plugins on their desktop.
Basically that is what SpeechShim is in a nutshell. When you add speechshim.js into your web app you will be able to access the "SpeechRecogntion" object instead of needing to prefix it like "webkitSpeechRecognition". As well if you combine it with the speak.js project the speechshim.js code will add the methods necessary so you can use the SpeechSynthesis interface.
To get up and running you will need:
- A copy of Google Chrome version 29 or higher.
- A copy of the speak.js project from github.
- A copy of my speechshim.js from github.
Here's an example HTML page:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
"http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<head> | |
<title>Web Speech API Demo</title> | |
</head> | |
<body> | |
<img id="audioIn" src="voice.jpg"/> | |
<div id="result"> | |
</div> | |
<script type="text/javascript" src="speechshim.js"></script> | |
<script type="text/javascript" src="speakClient.js"></script> | |
<script type="text/javascript"> | |
var audioIn = document.getElementById("audioIn"); | |
audioIn.addEventListener("click", recognize, false); | |
function recognize() { | |
var recognition = new SpeechRecognition(); | |
recognition.onresult = function(event) { | |
if (event.results.length > 0) { | |
var text = event.results[0][0].transcript; | |
document.getElementById("result").innerText = text; | |
var u = new SpeechSynthesisUtterance(); | |
u.text = text; | |
u.lang = 'en-US'; | |
speechSynthesis.speak(u); | |
} | |
}; | |
recognition.start(); | |
} | |
</script> | |
</body> | |
</html> |
and you can run the live demo here. It's nothing fancy. Just click the big button then say something. It should get updated under the button and you will hear it spoken out by the TTS. More on plugin availability for PhoneGap is coming soon.
Subscribe to:
Posts (Atom)