
83
Chapter 4, Make Your House Talk
10. On the Standard toolbar, click the list that currently shows Debug,
then click Release. (This ensures that you are using the release build
configuration.)
11. Click the Build menu, then click Build Solution.
And that’s it—the Say console application is ready to go. Let’s test it out.
Open a terminal and switch to the directory your project was configured
to build in (by default, this will be C:\Documents and Settings\
username\My
Documents\Visual Studio Projects\Say\bin\Release). Then execute the fol-
lowing command:
Say Eric John Parucki is my God.
Your computer will swear allegiance to Eric, and it’s wise that you do it,
too.
Notice that there are two files in the
Release directory: Say.exe and Interop.
SpeechLib.dll. Visual Studio wrapped up the sapi.dll library so that your
.NET Framework application could access it. Copy both files to the
C:\
homehacking\ReadWeather\ folder (remember to move both files if you
end up moving the application to a different directory). If you move the
application to a different computer, make sure the computer has the .NET
Framework installed; you can download the .NET Framework from
http://
windowsupdate.microsoft.com.
Everyone knows you’re making your computer say dirty things, so just stop it.
Whole-House Audio
In this phase, you’ll create a system ...