TweetFollow Us on Twitter

Talking to Your Home Volume Number: 16 (2000)
Issue Number: 11
Column Tag: Home Automation

Talking to Your Home

By Bruce Lawton

Introduction

The futuristic world of talking to your home to operate everything in it is here now! Well, how many times have we heard claims like that? The truth is: for some it really is here now; for others, it is not quite ready yet. Speech recognition technology is delivering some amazing results already and it is just getting better as the computers get faster and the recognition software continues to improve.

To make it happen, we'll be talking about voice commands, microphone(s), a Power Macintosh, software, X-10 home automation hardware and your existing lamps, appliances and other gadgets. This discussion assumes you're already familiar with general X-10 home automation. If not, check out the June 2000 issue of MacTech.

Why You Might Want to Use Voice Commands

The most useful application for speech recognition is for persons wanting to overcome a physical handicap. With limited mobility or limited dexterity, speech recognition enables someone to operate lamps, appliances and home entertainment units that would otherwise be difficult or impossible to operate. In this way, the quality of life can be greatly improved, giving the person a bit more independence.

For those who are not physically limited, operating the home by voice can be a matter of convenience or just plain fun. How many times have you settled into bed and then realized (perhaps with a little helpful reminder from your dear significant other) that some lights were left on? The easiest thing to do is to say "Turn off all lights."

It is also impressive to show your PC friends what your Macintosh will do in response to your voice commands. There's nothing quite like seeing everyday hardware operated by voice.


Figure 1. From voice to lamp.

Setting up the Microphone(s)

To get started, you must first plan how you're going to get your voice to your Macintosh. There are at least three ways to do it. The most inexpensive microphone configuration is the standard PlainTalk, corded microphone connected directly to your Mac. The obvious drawback is that the cord restricts the distance you can go from your Mac while issuing voice commands. In some situations, this may be adequate.

The most cost-effective approach giving you more range is to use a wireless microphone that transmits your voice as your own personal FM radio station. Then you have a small FM radio connected to your Mac to feed the sound in. The range on the microphone should enable operation from anywhere in a normal-sized home. My own experience is that the Pro.2 microphone from Lotus Productions ( www.lotusproductions.com, (800) 211-3778 ) works well and costs around $45. A small $25 radio from Radio Shack will receive the FM signal and should be connected to either your A/V Mac's RCA input jacks or directly to the PlainTalk mic jack using a standard 3.5 mm stereo plug as shown below. The PlainTalk jack is really a stereo line-level input. The extra length of the plug allows the Mac to supply power to the tip which is then used by circuitry in the PlainTalk mic. The normal 3.5 mm stereo plug doesn't use that available power. The headphone jack of the radio provides an audio signal compatible with the PlainTalk mic input. Make sure you adjust the radio headset volume to get the clearest sound with no clipping.


Figure 2. FM microphone and radio.

The deluxe approach is to use in-wall microphones and a mixer. This costs the most, but can give you completely hands-free voice control from any room. There is a fair amount of experience in the comp.home.automation newsgroup from those who have set this up on Windows. It can work well, though I must admit I haven't done this myself — my own home has far too much "noise". Wired microphones can be great for a home with one or maybe two people living there, but may not work well with several people. The Mac's PlainTalk can get confused if it is listening to many voices at once. When using in-wall microphones, each mic has a cable that is run back to the mixer, which is presumably near the Mac. The audio output from the mixer is then connected to the Mac's sound input. Similar to the FM radio configuration, you can feed the line-level signal either into your A/V Mac's RCA input jacks or directly into the PlainTalk mic jack using a standard 3.5 mm stereo plug.

Shure (www.shure.com, (847) 866-2200) makes the SCM-410 and SCM-810 mixers with 4 and 8 inputs respectively. They dynamically cut out the microphones that are not being used, improving the audio quality for the microphone you're speaking to. They cost $800 and $1,200 at iAutomate ( www.iAutomate.com, (800) 741-6790 ). HomeVoice also makes a mixer, sold as part of their "Multiroom Processor Kit" at SmartHome (www.smarthome.com, (800) 762-7846) for $690. Good, compatible, in-wall microphones vary greatly in price, from $70 to $250 or more. One of the most recommended models is the Crown PZM-11, sold at iAutomate and SmartHome.


Figure 3. In-wall microphones with a mixer.

The Software

For our purposes, there are two categories of speech recognition software: dictation and discrete commands. IBM's ViaVoice is an excellent way to get your speech dictation into the Macintosh, but the resulting stream of words is not "understood" by the ViaVoice software. That is, it doesn't know what action you want taken in response to the words. Dictation software is intended as an alternate method of text input — it is not going to help you operate your X-10 system. This is where you want software that understands discrete commands. PlainTalk is at the heart of this type of speech recognition. As it has steadily improved over the years and CPU's have sped up, the reliability has become quite good. The Thinking Home application uses PlainTalk to make your X-10 devices available. First, install PlainTalk. This is done via a "Custom" installation from your MacOS CD or it can be downloaded from Apple's web site at <http://www.apple.com/macos/speech/>. Next, ensure you have checked the "Respond to Voice Commands" checkbox in the Preferences as seen in Figure 4.


Figure 4. Enabling speech commands.

You need to have a device named "Bedroom Lamp" like the example of Figure 5. Now you can say "Turn off the bedroom lamp." and Thinking Home will do the right thing.


Figure 5. Your device names are used by PlainTalk.

Syntax of What You Say to Make it Work

In order to operate a device using Thinking Home, you speak a normal sentence, with the action followed by the device name. For example, "Turn off the bedroom lamp." or "Set the thermostat to heat." The precise syntax is shown here in Backus-Naur Form notation:

<voice-command>   ::= <action> <device-name> |
        "What is the status of the> <device-name> |
      "Set the" <thermostat-name> "to" <mode>
<action>   ::= "Turn on" | "Turn off" | "Dim" | "Brighten"
<device-name>   ::= the device name used in the Thinking Home document
<thermostat-name>::= <device-name> | "thermostat"
<mode>   ::= "Heat" | "Cool" | "Off"

More examples:

  • Turn on the bedroom lamp.
  • Turn off the kitchen light.
  • Dim the theater lights. — will be dimmed by 35%
  • Brighten the bedroom lamp. — for a gentle start in the morning.
  • Set the thermostat to cool.
  • What is the status of the sidewalk lights?

Note that the thermostat can be referred to by the name you gave it, like any other device. Or you can refer to it simply as "thermostat" and Thinking Home will use the first thermostat it finds in any open document.

There are some caveats to asking for the status of a device. First of all, the Mac will speak the reply and you may not be at your Macintosh if you are using the wireless mic or mics installed in each room. The other issue is the accuracy of the status. This will depend on whether the X-10 module is able to report its status. Two-way device modules ($25+) will report their status, but the most common modules that sell for $4 to $12 do not. If you're using an ActiveHome CM-11A computer interface, it will keep track of X-10 commands observed on your home wiring and will report the status of the lamp. This assumes you have not operated it manually. The report from a two-way lamp module would reflect its actual state, including manual operation.

You can also control your X-10 thermostat by saying "Set the thermostat to cool." The choices for thermostat modes are cool, heat and off. Unfortunately, you cannot say "Set the thermostat to 72 degrees." This is one place where PlainTalk is not quite ready. Recognizing spoken numbers is much more difficult than most other speech.

Speakable Items (installed with PlainTalk) is another way to access some of Thinking Home's functionality via speech. For example, you may want to know the time of sunset on a regular basis. By making a Speakable Item like the example below, you can say to your Macintosh "When is sunset?" and the Speakable Items application will run the the AppleScript by that name. The AppleScript can, in turn, tell Thinking Home to speak the time of today's sunset as seen here in Figure 6.


Figure 6. Using Speakable Items to get the time of sunset.

This is also how you can get XTension v3.0 (from Sand Hill Engineering) to respond to your voice. Although XTension does not have built-in support for PlainTalk, it does have excellent support for AppleScript. You can use Speakable Items for speech recognition and make an AppleScript for each command you want recognized. Your scripts in the Speakable Items folder will tell XTension which X-10 device to operate. For example, to get the time of sunset, you'd write a script almost exactly as that for Thinking Home.


Figure 7. XTension Speakable Item for getting the time of sunset.

To use XTension to operate devices via speech, you create an AppleScript like that in Figure 8 and name it as you intend to speak it. Like before, you name this script "Turn off the bedroom lamp". You'll also need to make a similar one for "Turn on the bedroom lamp."


Figure 8. XTension Speakable Item for operation of a device.

To get device status using XTension, you write an AppleScript similar to that shown in Figure 9.


Figure 9. XTension Speakable Item for getting the status of a device.

Tips

Since faster CPU's seem to perform better than slower ones, you will probably want to avoid using a Power Macintosh running less than 100 MHz.

The Shure web site has a wealth of useful information and general advice regarding the various options, such as ceiling- vs. wall-mounted microphones. <http://www.shure.com/support/technotes/app-soundcard.html#Macintosh>

Before you demo your cool home to others, test it out in advance. In particular, check that it works reliably from all locations you plan to be when showing it. When using a wireless microphone, ensure the range is sufficient to operate consistently from all locations where you will be using it. Also, make sure the ambient sounds are the same. Putting on background music just as your guests arrive will change the "noise" level and your speech commands may very well get lost. Once you have it set up nicely, your friends will be amazed.

Conclusion

Integrating speech recognition into your Macintosh X-10 home automation can be useful, convenient and fun. This futuristic technology is ready and affordable today and still improving. Select an arrangement that fits your lifestyle and budget and try it out.

Links


Bruce Lawton is still an enthusiastic Macintosh developer who first got hooked over 15 years ago. He can be reached at bruce@alwaysthinking.com.

 

Community Search:
MacTech Search:

Software Updates via MacUpdate

iClock 4.6.4 - Customizable menu bar clo...
iClock replaces the old Apple's default menu bar clock with more features, customization and increases your productivity. Features: Have your Apple or Google calendar instantly available from the... Read more
Final Cut Pro X 10.4.5 - Professional vi...
Final Cut Pro X is a professional video editing solution. Completely redesigned from the ground up, Final Cut Pro adds extraordinary speed, quality, and flexibility to every part of the post-... Read more
MarsEdit 4.2.6 - Quick and convenient bl...
MarsEdit is a blog editor for OS X that makes editing your blog like writing email, with spell-checking, drafts, multiple windows, and even AppleScript support. It works with with most blog services... Read more
Microsoft Office 2016 16.16.6 - Popular...
Microsoft Office 2016 - Unmistakably Office, designed for Mac. The new versions of Word, Excel, PowerPoint, Outlook, and OneNote provide the best of both worlds for Mac users - the familiar Office... Read more
calibre 3.38.0 - Complete e-book library...
Calibre is a complete e-book library manager. Organize your collection, convert your books to multiple formats, and sync with all of your devices. Let Calibre be your multi-tasking digital librarian... Read more
Microsoft Office 365, 2019 16.21 - Popul...
Microsoft Office 365. The essentials to get it all done. Unmistakably Office, designed for Mac Get started quickly with new, modern versions of Word, Excel, PowerPoint, Outlook and OneNote-... Read more
Microsoft Office 365, 2019 16.21 - Popul...
Microsoft Office 365. The essentials to get it all done. Unmistakably Office, designed for Mac Get started quickly with new, modern versions of Word, Excel, PowerPoint, Outlook and OneNote-... Read more
Microsoft Office 2016 16.16.6 - Popular...
Microsoft Office 2016 - Unmistakably Office, designed for Mac. The new versions of Word, Excel, PowerPoint, Outlook, and OneNote provide the best of both worlds for Mac users - the familiar Office... Read more
Final Cut Pro X 10.4.5 - Professional vi...
Final Cut Pro X is a professional video editing solution. Completely redesigned from the ground up, Final Cut Pro adds extraordinary speed, quality, and flexibility to every part of the post-... Read more
calibre 3.38.0 - Complete e-book library...
Calibre is a complete e-book library manager. Organize your collection, convert your books to multiple formats, and sync with all of your devices. Let Calibre be your multi-tasking digital librarian... Read more

Latest Forum Discussions

See All

Pre-register now for epic fantasy RPG Fi...
Final Blade is an epic fantasy RPG that revolves around two warring nations and one extremely powerful sword. Having already found great success in Taiwan and South Korea, the developer is now bringing its acclaimed free-to-play iOS and Android... | Read more »
The top 3 best iPhone and iPad games com...
The end of the week has rolled around. It's been a pretty good seven days for mobile gaming - if you want proof you can click here and check out our five favorite games that came out this week - but now we're going to turn our attention to the... | Read more »
The best games for iPhone and iPad that...
Every week here at 148Apps we like to make sure that you're up to date with all the awesome games that have come out for iPhone and iPad over the past 7 days. We pick the cream of the crop to ensure that you don't have to play anything boring and... | Read more »
The top 3 best idle games for iPhone and...
Sometimes you want to play a game where you don't really have to do anything. Don't worry, we're not here to judge you, we're exactly the same. We love some action when we're in the right mood, but sometimes we want something a little more chill -... | Read more »
The top 5 best games with great stories...
Last week we took a look at the best games for iOS that you could waste hours and hours of your life playing, so now we thought we'd have a look at the top 5 games for iPhone and iPad that have great stories. These are the tales that have stuck... | Read more »
Langrisser Mobile preview - Seminal TRPG...
Langrisser Mobile is set to finally break the revolutionary TRPG franchise's 20 year silence when the it finally makes its way to touchscreens the world over at the end of the month. The original Langrisser game (known as Warsong in the west)... | Read more »
Everything you need to win at Dragalia L...
Want to up your Dragalia Lost game? You've come to the right place. Here at 148Apps, we've been digging deep into Nintendo's latest gacha game to find the best tips, tricks, and strategies to share with all of our future co-op team mates (read: you... | Read more »
How will World of Warcraft, Starcraft, a...
You might have heard that Blizzard is bringing Diablo to mobile with Diablo Ultimate. There's been plenty of controversy surrounding that decision, and it's meant that a really important piece of information has been glossed over a little. Namely... | Read more »
The top 3 best iPhone and iPad games com...
Our mission here at 148Apps is pretty simple - we want to make sure that you're playing the best iPhone and iPad games in the world. Which is why, every Friday, we like to give you an insight into the incredible games that are set to rock your... | Read more »
The top 5 best games for iPhone and iPad...
It's been a pretty decent week for releases on the App Store, all told. This week has the feeling of a mobile-first start to the year, with developers releasing games that fit perfectly in the palm of your hand. And we've picked what we think are... | Read more »

Price Scanner via MacPrices.net

New US Cellular iPhone deal: Switch and get a...
US Cellular has introduced a new deal offering free or discounted Apple iPhones to new customers. Switch to US Cellular and get a 64GB iPhone Xr for free or get a 64GB iPhone Xs or Xs Max for 50% off... Read more
20% off iPhones with plan at Total Wireless w...
Use coupon code TWNEWYEAR20 at Total Wireless from January 5, 2019 to January 31, 2019, and take 20% off their selection of new iPhones or other devices. Total Wireless plan is required, and the... Read more
Price drop! B&H now offering all new 27″...
B&H Photo has lowered prices on new 27″ Apple iMacs, and they’re now offering each model for $200 off MSRP, starting at $1599. These are the same models offered by Apple in their retail and... Read more
B&H has Apple Watch Series 3 GPS + Cellul...
B&H Photo is discounting Apple Watch Series 3 GPS + Cellular models by $60-$70, with 38mm Watches starting at $309. Shipping is free: – 38mm Apple Watch Series 3 GPS + Cellular: $309 $70 off MSRP... Read more
Get a 32GB iPhone 6s at Boost Mobile for $299...
Boost Mobile is offering the 32GB Apple iPhone 6s and 6s Plus for $150 off MSRP plus a free $100 account credit. Their discount reduces the cost of a 32GB iPhone 6s to $299.99 and the 32GB iPhone 6s... Read more
Get a new 9.7″ Apple iPad for $75 off at Veri...
Use coupon code TABLET75 at checkout to save $75 on a 9.7″ iPad at Verizon for a limited time. This reduces the price for the 32GB model from $459 to $384 and the 128GB iPad from $559 to $484. New... Read more
Sale! B&H Photo drops prices on 13″ MacBo...
B&H Photo has new 13″ MacBook Pros on sale for up to $150 off MSRP, valid through January 16, 2019. Their prices are the lowest available for new 13″ MacBook Pros from any Apple reseller. These... Read more
Lowest prices ever on new 2018 11″ Apple iPad...
B&H Photo has new 2018 Apple 11″ iPad Pros in stock today and on sale for $50-$100 off MSRP. Shipping is free. These are the same iPad Pros offered by Apple in their retail and online stores. B... Read more
Sale! Get a new 27″ Apple iMac for $100-$200...
B&H Photo has new 27″ Apple iMacs on sale for up to $200 off MSRP. These are the same models offered by Apple in their retail and online stores. Shipping is free: – 27″ 3.8GHz 5K iMac (MNED2LL/A... Read more
Get a refurbished 2017 12.9″ iPad Pro for up...
Apple has Certified Refurbished 2017 12″ iPad Pros available for $120-$190 off original MSRP, depending on the model. An Apple one-year warranty is included with each model, outer shells are new, and... Read more

Jobs Board

Best Buy *Apple* Computing Master - Best Bu...
**667840BR** **Job Title:** Best Buy Apple Computing Master **Job Category:** Sales **Location Number:** 000456-Woodbridge-Store **Job Description:** **What does a Read more
*Apple* Enterprise Engineer - Evolver, Inc....
…contribute to the success of the company. Evolver is seeking an Apple Enterprise Engineer to work in Washington, DC Responsibilities: The successful candidate Read more
Geek Squad *Apple* Master Consultation Agen...
**667848BR** **Job Title:** Geek Squad Apple Master Consultation Agent **Job Category:** Services/Installation/Repair **Location Number:** 000531-Portland-Store Read more
Best Buy *Apple* Computing Master - Best Bu...
**665166BR** **Job Title:** Best Buy Apple Computing Master **Job Category:** Sales **Location Number:** 000868-West Lebanon-Store **Job Description:** **What does a Read more
Geek Squad *Apple* Master Consultation Agen...
**667309BR** **Job Title:** Geek Squad Apple Master Consultation Agent **Job Category:** Services/Installation/Repair **Location Number:** 001008-Vacaville-Store Read more
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.