A Computer that talks to itself…

Union Building

I’m still working on the Kinect voice controlled human painting program. First thing I need is a shorter name…

Today I added a feature I thought would be really cool. Voice response is one thing, but I also wanted the computer to talk back when I issued a command. Adding voice output to a C# program is a doddle.

First you add the System.Speech library to the references in your solution.

Then you add the speech synthesis namespace:

using System.Speech.Synthesis;

Now you can make your program speak:

SpeechSynthesizer speaker;

void setupSpeechOutput()
{
    speaker = new SpeechSynthesizer();
    speaker.Speak("Ready to Go");
}

This is the setup method for my speech output. Whenever you want your program to say something, just call the Speak method on the variable speaker. If you are worried about slowing things down you can use an asynchronous call to speak in the background while your program runs on. Works very well. In fact too well.

I had the program repeating the commands aloud and it worked wonderfully. I would say “Red” to select the red colour and the program would say “Red” back. Then commands started repeating, with the computer saying “Red” time after time. Took me a minute to figure out what was happening. Turns out that the computer is really good at recognizing computer speech. It would hear itself say the confirmation message and echo it, and so on. I added a timeout so that it ignores things for a second after a command and all is well now.

Kinect Skeleton Drawing Fun

demo0

I drew these pictures myself. With myself. This is the first ever picture from my Kinect Drawing program. This lets you use your arm to draw on the screen by waving it around.. You can use voice commands to select the colour you want to draw with or you can have the random rainbow effect that you see above.

All this Kinect fun and games is in aid of a book that I’m writing, “Start Here! – Learn the Kinect API”. It should be in the shops later this year.

All Terrain Robot

Beer Stealing Robot

I also got this awesome “All Terrain Robot” kit for Christmas. Once you have spent a happy couple of hours building the individual components you can fit them together to make either a six tracked all terrain robot, a forklift truck or my favourite, the beer stealing ‘Gripper bot’ that you see above.

Actually, it can’t move a full can of beer – but it does look awesome. And I even got batteries included.

New Years Hornsea

Hornsea Beach

For some reason we always try to go and see the sea early in the New Year. This usually means a trip to Hornsea. Today the weather and the tide were very kind to us, and so we had a little walk down the beach and I took some snaps.

Hornsea Beach Pebbles

The weather was nice, but very chilly in the wind. We sought refuge in an amusement arcade.

Hornsea Penny Falls

They have these “Penny Falls” machines where you try and push pennies off the a ramp. This looks like it is good to drop, but I reckon those coins are super glued into position…

The Gunstringer for Xbox 360 Kinect

image

When the Kinect was released I was hoping that some games would come along that made use of the things it can do to create different types of game. The sports simulation games are nice enough, as are the dancing ones, but I’ve been waiting for completely new game types.

The Gunstringer is certainly new. You use your left hand to control a gunslinging marionette in his (its?) quest for vengeance against those who done him wrong.  The right hand is used for targeting and shooting. The whole thing is presented in the form of a puppet show with a live audience who cheer you on and boo the bad guys.

There are daft cut scenes, some great voice acting and the whole thing is powered by a 3D engine that seems to be called “Beard”. It is all delightfully silly and great fun. You can download a demo version and have a play with that, and once you have had a taste I reckon you’ll be forking out for the full game.

New Years Eve Games: Dobble, Spot it! and The Resistance

We spent New Years Eve playing some games we’d not tried before.

image

First up was Dobble. This is an awesome little pattern matching card game with very simple rules and amazingly raucous gameplay. Great fun with a whole bunch of mini-games. While looking up links for this blog post I’ve found that Dobble is no more, but the game is now being sold under the much more sensible name of Spot-It. Same game but much cheaper. If you want to keep a bunch of kids (or adults who are a bit like kids) busy – but not quiet – then take a look at this game.

image

The Resistance is much more cerebral. You are either a loyal resistance member or a traitor bent on sabotaging missions. As the game progresses it is up to the loyal members to identify the traitors and the traitors to sow confusion amongst the ranks and thwart everything. This is great fun too, especially if you get to play as a traitor.

PlayMusic for Windows Phone

image

I seem to be on a Windows Phone application roll at the moment. This one has just gone live in the Marketplace too. I had the idea for it when I was driving into work last Tuesday. I built the application in around an hour, spent 30 minutes or so making it pretty and building the icons and then submitted it into Windows Phone Marketplace. And now you can load it.

It doesn’t do much, but I find it useful. I built it as a workaround to get music playing when I’m driving along. I like to be able to start the music playing using voice commands and I’ve not found a way to do this with the phone. I can start programs running (including Zune) but I can’t start music playing. This may be something that I’ve missed, but I enjoyed writing the application anyway so it is not a loss as far as I am concerned.

I can get music playing by just using the voice command “Start PlayMusic”. When the application runs it just picks a random playlist (or album if there are no playlists on the phone) and plays it. If the music is already playing it does nothing. The program also displays a pithy message (those took longer to think up than writing the actual program code). If it solves a problem for you, then grab a copy.

Christmas Eve with Zelda and Link

image

I’ve always liked my Wii, in spite of not using it as much as I should do. Today we went up town for some last minute Christmas shopping. And I ended up buying a copy of the “swan song” game for this console, which is due for replacement next year with the Wii U.

Watching number one son play the game I was struck by just how good Nintendo are at constructing things like this. Everything works, everything is charming, and pretty much everything has a purpose. Just a great way to spend time.

Evil Squash on Windows Phone

image

image

There are now Evil Squash games in Windows Phone Marketplace. Yay! For those that haven’t heard of the game of Evil Squash; it is a kind of cross between Snakes and Ladders and Ludo. We invented it just for our first year programming practical work. And now some enterprising students have got versions running in the Windows Phone marketplace. Well done people.

I’m compiling an “Evil Squash” hall of fame for the Evil Squash site. If you are on the first year of our course and want your version promoting, give me a yell.

Gadget Box

Gadgets

Yesterday I got a box for all the Gadgeteer bits and bobs that I’ve been lent to pay with. In amongst the cables we have a soil moisture sensor, barometer, a bunch of switches and multi-coloured lights, compass, gyro, GPS sensor, SD card reader, network interface, Joystick, LCD panel, OLED panel, network connector, processor board, video camera, power relays and usb host connector. I’ve already built a little camera (that’s the demo application). Now I just have to think of something else to build.

Free Xbox 360 with Nokia Lumia 800

image

I didn’t realise it at the time, but getting a new Windows Phone has other benefits as well. In the form of a free Xbox 360 with every brand new Nokia Lumia 800. I think the offer has expired now though. I’d have got the phone anyway, free console or not, but it is rather nice.

I’ve had an Xbox 360 since day of release. I have fond memories of around 30 of us sitting in the dark playing Condemned when I took my shiny new console in having picked it up on the very first day. I have less fond memories of the “Red Ring of Death” and sending the whole thing back for repair fairly shortly after that of course….

Anyhoo; today the postman brought me a brand new Xbox 360. It is the new design one and almost shiny. It doesn’t have a hard disk, but it works a treat using an internal 4G of memory and is much, much quieter than my previous machine. Number one sun put in a copy of Skyrim and fired it up. Very, very good. I find it hard to believe that this is now a “mature” console.

The new machine works so well that it has now taken over from my original device. If anyone out there wants a “one careful owner” console, give me a yell.

Me, I’m off to buy a hard disk to plug into it.

Fifty Years of Private Eye

Private Eye

Last week we went up to London for a day trip. One thing we wanted to do was take a look at the “Private Eye: The First Fifty Years” exhibition in the Victoria and Albert museum. Private Eye is a satirical magazine which must be finding life quite interesting in a world which seems to have moved beyond satire in the last few years.

Free to visit and some very funny cartoons. Worth a trip, but you’ll have to hurry as it closes early next year.