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

Default Folder X 6.0 - Enhances Open and...
Default Folder X attaches a toolbar to the right side of the Open and Save dialogs in any OS X-native application. The toolbar gives you fast access to various folders and commands. You just click on... Read more
DEVONthink Pro 3.9.3 - Knowledge base, i...
DEVONthink Pro is DEVONtechnologies' document and information management solution. It supports a large variety of file formats and stores them in a database enhanced by artificial intelligence (AI).... Read more
ffWorks 3.6.4 - A Comprehensive Video Co...
ffWorks, focused on simplicity, brings a fresh approach to the use of FFmpeg, allowing you to create ultra-high-quality movies without the need to write a single line of code on the command-line.... Read more
Acorn 7.4.3 - Bitmap image editor.
Acorn is a new image editor built with one goal in mind - simplicity. Fast, easy, and fluid, Acorn provides the options you'll need without any overhead. Acorn feels right, and won't drain your bank... Read more
Affinity Designer 2.2.0 - Vector graphic...
Affinity Designer is an incredibly accurate vector illustrator that feels fast and at home in the hands of creative professionals. It intuitively combines rock solid and crisp vector art with... Read more
Pinegrow 7.71 - Mockup and design web pa...
Pinegrow (was Pinegrow Web Designer) is desktop app that lets you mockup and design webpages faster with multi-page editing, CSS and LESS styling, and smart components for Bootstrap, Foundation,... Read more
MacFamilyTree 10.2.1 - Create and explor...
MacFamilyTree gives genealogy a facelift: modern, interactive, convenient and fast. Explore your family tree and your family history in a way generations of chroniclers before you would have loved.... Read more
Printopia 3.0.22 - Share Mac printers wi...
Run Printopia on your Mac to share its printers to any capable iPhone, iPad, or iPod Touch. Printopia will also add virtual printers, allowing you to save print-outs to your Mac and send to apps.... Read more
iStat Menus 6.72 - Monitor your system r...
iStat Menus lets you monitor your system right from the menubar. Included are 8 menu extras that let you monitor every aspect of your system. Features: CPU - Monitor cpu usage. 7 display modes,... Read more
Xcode 15.0 - Integrated development envi...
Xcode includes everything developers need to create great applications for Mac, iPhone, iPad, and Apple Watch. Xcode provides developers a unified workflow for user interface design, coding, testing... Read more

Latest Forum Discussions

See All

The ‘Genshin Impact’ Version 4.1 3rd Ann...
The big Genshin Impact (Free) 3rd anniversary celebration update is out now on all platforms bringing in the expansion of Fontaine to the North, adding two new playable characters, a poetry festival, the continuation of Fontaine’s Archon Quests,... | Read more »
TGS 2023: Hands-On With The Tasty Surviv...
What are we calling Vampire Survivors-like games now? I don’t remember. But there are getting to be a fair number of those, to the point that you really have to have some kind of gimmick if you want to stand out from the crowd. Take Pizza Hero, for... | Read more »
TGS 2023: Hands-On With Roguelite Puzzle...
There weren’t a whole ton of indie mobile games at this year’s Tokyo Game Show. It’s just the way the trends are going, friends. But we found a few, and of the ones we saw I think this one might have the best chance of really hitting it off with our... | Read more »
SwitchArcade Round-Up: Reviews Featuring...
Hello gentle readers, and welcome to the SwitchArcade Round-Up for September 26th, 2023. In today’s article, we’ve got a few short reviews to get things rolling. Super Adventure Hand, Anna Holinksi Saves The Universe, and Wartales get their... | Read more »
TGS 2023: Hands-On With ‘Toaplan Amuseme...
One of the things I wanted to make sure I tried out at the Tokyo Game Show this year was a recently announced app from Tatsujin, the company that currently holds the rights to the Toaplan catalog of games. While the company name might not be... | Read more »
TGS 2023: Hands-On With The Wild Arcade...
Look, when I’m at the Tokyo Game Show, I’m typically there to cover mobile and not much else. It’s the mission, it’s what I’m there to do, and I know it’s what most of our readers want to see. But sometimes I see something non-mobile that I just... | Read more »
Skullgirls Mobile Version 6.0 Update Wit...
The time has finally come. Marie has joined Hidden Variable’s Skullgirls Mobile (Free) on iOS and Android alongside a major update. | Read more »
Gorgeous Story Building Puzzle Game ‘Sto...
Back in June, Annapurna Interactive announced that Daniel Benmergui’s Storyteller (Free) would be hitting mobile through Netflix Games this month. | Read more »
‘Vampire Survivors’ 1.7.0 Whiteout Updat...
Soon after Vampire Survivors (Free) got its co-op mode update on iOS, Android, PC with new engine, and Nintendo Switch port, a new update has been showcased in a spoiler-filled video from poncle. | Read more »
Mobile Builder ‘SpongeBob Adventures: In...
Tilting Point recently announced that it had teamed up with Whaleapp for a new SpongeBob game following the success of SpongeBob Krusty Cook-off. Pre-registrations for SpongeBob Adventures: In a Jam () went live on iOS and Android as well back then... | Read more »

Price Scanner via MacPrices.net

9th-generation 10.2″ iPads on sale for $50-$6...
B&H Photo has Apple’s 9th generation 10.2″ WiFi iPads on sale for $50-$60 off MSRP with prices available starting at $269. Their prices are the lowest new prices available for iPads anywhere.... Read more
Apple has the iPad mini 6 in stock today for...
Apple has the 8.3″ WiFi iPad mini 6 in stock and available for $80-$100 off MSRP, Certified Refurbished, each including free shipping. Prices start at $419. Each iPad features a new outer case and... Read more
Apple has restocked M2 Mac minis starting at...
Apple has M2-powered Mac minis available again in their Certified Refurbished section starting at $509 and ranging up to $200 off MSRP. Each mini comes with Apple’s one-year warranty, and shipping is... Read more
New promo at AT&T: $300 off any Apple Wat...
AT&T is offering Apple Watch Series 9 and Ultra 2 models for $300 off MSRP when you purchase two Watches with AT&T service and add at least one new line. The fine print: “Enjoy $300 off Apple... Read more
Introducing AppleSurfer at MacPrices: All you...
Scan all the headlines from Apple and over a dozen major Apple websites each day on our new page, AppleSurfer. Paying homage to the now defunct MacSurfer website, we update AppleSurfer hourly, 24/7,... Read more
Get a new 15″ M2 MacBook Air for $200 off MSR...
Amazon has Apple’s new 15″ MacBook Airs with M2 CPUs (8GB RAM/256GB SSD) in stock today and on sale today for $1099 in Space Gray, Silver, Starlight, and Midnight colors, each including free delivery... Read more
10th generation Apple iPads on sale for $60 o...
Amazon has Apple’s 9th generation 10.2″ iPads on sale for $60 off MSRP with prices available starting at $269. Their prices are the lowest new prices available for iPads anywhere: – 10″ 64GB WiFi... Read more
Apple iPad Airs back on sale for $100 off MSR...
Amazon has 10.9″ M1 WiFi iPad Airs on sale again for $100 off Apple’s MSRP, with prices starting at $499. Each includes free shipping. Their prices are the lowest available among the Apple retailers... Read more
New low price: 13″ M2 MacBook Pro for $1049,...
Amazon has the Space Gray 13″ MacBook Pro with an Apple M2 CPU and 256GB of storage in stock and on sale today for $250 off MSRP. Their price is the lowest we’ve seen for this configuration from any... Read more
Apple AirPods 2 with USB-C now in stock and o...
Amazon has Apple’s 2023 AirPods Pro with USB-C now in stock and on sale for $199.99 including free shipping. Their price is $50 off MSRP, and it’s currently the lowest price available for new AirPods... Read more

Jobs Board

Omnichannel Associate - *Apple* Blossom Mal...
Omnichannel Associate - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Read more
Operations Associate - *Apple* Blossom Mall...
Operations Associate - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Read more
Cashier - *Apple* Blossom Mall - JCPenney (...
Cashier - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Blossom Mall Read more
Optometrist- *Apple* Valley, CA- Target Opt...
Optometrist- Apple Valley, CA- Target Optical Date: Sep 23, 2023 Brand: Target Optical Location: Apple Valley, CA, US, 92308 **Requisition ID:** 796045 At Target Read more
Housekeeper, *Apple* Valley Villa - Cassia...
Apple Valley Villa, part of a 4-star senior living community, is hiring entry-level Full-Time Housekeepers to join our team! We will train you for this position and Read more
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.