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

Latest Forum Discussions

See All

Tokkun Studio unveils alpha trailer for...
We are back on the MMORPG news train, and this time it comes from the sort of international developers Tokkun Studio. They are based in France and Japan, so it counts. Anyway, semantics aside, they have released an alpha trailer for the upcoming... | Read more »
Win a host of exclusive in-game Honor of...
To celebrate its latest Jujutsu Kaisen crossover event, Honor of Kings is offering a bounty of login and achievement rewards kicking off the holiday season early. [Read more] | Read more »
Miraibo GO comes out swinging hard as it...
Having just launched what feels like yesterday, Dreamcube Studio is wasting no time adding events to their open-world survival Miraibo GO. Abyssal Souls arrives relatively in time for the spooky season and brings with it horrifying new partners to... | Read more »
Ditch the heavy binders and high price t...
As fun as the real-world equivalent and the very old Game Boy version are, the Pokemon Trading Card games have historically been received poorly on mobile. It is a very strange and confusing trend, but one that The Pokemon Company is determined to... | Read more »
Peace amongst mobile gamers is now shatt...
Some of the crazy folk tales from gaming have undoubtedly come from the EVE universe. Stories of spying, betrayal, and epic battles have entered history, and now the franchise expands as CCP Games launches EVE Galaxy Conquest, a free-to-play 4x... | Read more »
Lord of Nazarick, the turn-based RPG bas...
Crunchyroll and A PLUS JAPAN have just confirmed that Lord of Nazarick, their turn-based RPG based on the popular OVERLORD anime, is now available for iOS and Android. Starting today at 2PM CET, fans can download the game from Google Play and the... | Read more »
Digital Extremes' recent Devstream...
If you are anything like me you are impatiently waiting for Warframe: 1999 whilst simultaneously cursing the fact Excalibur Prime is permanently Vault locked. To keep us fed during our wait, Digital Extremes hosted a Double Devstream to dish out a... | Read more »
The Frozen Canvas adds a splash of colou...
It is time to grab your gloves and layer up, as Torchlight: Infinite is diving into the frozen tundra in its sixth season. The Frozen Canvas is a colourful new update that brings a stylish flair to the Netherrealm and puts creativity in the... | Read more »
Back When AOL WAS the Internet – The Tou...
In Episode 606 of The TouchArcade Show we kick things off talking about my plans for this weekend, which has resulted in this week’s show being a bit shorter than normal. We also go over some more updates on our Patreon situation, which has been... | Read more »
Creative Assembly's latest mobile p...
The Total War series has been slowly trickling onto mobile, which is a fantastic thing because most, if not all, of them are incredibly great fun. Creative Assembly's latest to get the Feral Interactive treatment into portable form is Total War:... | Read more »

Price Scanner via MacPrices.net

Early Black Friday Deal: Apple’s newly upgrad...
Amazon has Apple 13″ MacBook Airs with M2 CPUs and 16GB of RAM on early Black Friday sale for $200 off MSRP, only $799. Their prices are the lowest currently available for these newly upgraded 13″ M2... Read more
13-inch 8GB M2 MacBook Airs for $749, $250 of...
Best Buy has Apple 13″ MacBook Airs with M2 CPUs and 8GB of RAM in stock and on sale on their online store for $250 off MSRP. Prices start at $749. Their prices are the lowest currently available for... Read more
Amazon is offering an early Black Friday $100...
Amazon is offering early Black Friday discounts on Apple’s new 2024 WiFi iPad minis ranging up to $100 off MSRP, each with free shipping. These are the lowest prices available for new minis anywhere... Read more
Price Drop! Clearance 14-inch M3 MacBook Pros...
Best Buy is offering a $500 discount on clearance 14″ M3 MacBook Pros on their online store this week with prices available starting at only $1099. Prices valid for online orders only, in-store... Read more
Apple AirPods Pro with USB-C on early Black F...
A couple of Apple retailers are offering $70 (28%) discounts on Apple’s AirPods Pro with USB-C (and hearing aid capabilities) this weekend. These are early AirPods Black Friday discounts if you’re... Read more
Price drop! 13-inch M3 MacBook Airs now avail...
With yesterday’s across-the-board MacBook Air upgrade to 16GB of RAM standard, Apple has dropped prices on clearance 13″ 8GB M3 MacBook Airs, Certified Refurbished, to a new low starting at only $829... Read more
Price drop! Apple 15-inch M3 MacBook Airs now...
With yesterday’s release of 15-inch M3 MacBook Airs with 16GB of RAM standard, Apple has dropped prices on clearance Certified Refurbished 15″ 8GB M3 MacBook Airs to a new low starting at only $999.... Read more
Apple has clearance 15-inch M2 MacBook Airs a...
Apple has clearance, Certified Refurbished, 15″ M2 MacBook Airs now available starting at $929 and ranging up to $410 off original MSRP. These are the cheapest 15″ MacBook Airs for sale today at... Read more
Apple drops prices on 13-inch M2 MacBook Airs...
Apple has dropped prices on 13″ M2 MacBook Airs to a new low of only $749 in their Certified Refurbished store. These are the cheapest M2-powered MacBooks for sale at Apple. Apple’s one-year warranty... Read more
Clearance 13-inch M1 MacBook Airs available a...
Apple has clearance 13″ M1 MacBook Airs, Certified Refurbished, now available for $679 for 8-Core CPU/7-Core GPU/256GB models. Apple’s one-year warranty is included, shipping is free, and each... Read more

Jobs Board

Seasonal Cashier - *Apple* Blossom Mall - J...
Seasonal Cashier - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Read more
Seasonal Fine Jewelry Commission Associate -...
…Fine Jewelry Commission Associate - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) Read more
Seasonal Operations Associate - *Apple* Blo...
Seasonal Operations Associate - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Read more
Hair Stylist - *Apple* Blossom Mall - JCPen...
Hair Stylist - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Blossom 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
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.