This definition is used to bounce two tones off one another. Key in the values indicated in the figure, and click on “Play Tone”, you should hear something that sounds like a cheap telephone ringing. The dialog box will show these control options: (Figure 5)įigure 5: Saw Tooth Tone Definition Options Click on “Play Tone”, and you should be listening to a MIL-STD-411 Warning tone similar to what a military pilot would hear during an emergency. To try it out, key in 700 for the start frequency, key in 1700 for the end frequency, key in 85 for the duration of the tone in milliseconds, key in 20 for the steps (this defines how many steps the frequency will be divided into between the start and end frequencies a small number makes the tone choppy, a larger value makes it smoother, too large a number and it slows it down), key in 15 for the dwell (how long the tone is rested between repetitions), and key in 20 for the number of repetitions. The first tab is used to define a Sine wave tone. Looking at the form, note that it contains a tabbed panel with four tabs. On start, you will see this form appear:įigure 4: The Main Form of the Tone Generator Application Once you have a good build, go ahead and run the application. If anything turns up, add the missing project references in the same manner and build again. Having added these references, go ahead and do a build to see if anything else is missing. Once the dialog opens, select the COM tab (then go get a cup of coffee while it takes forever to load, and when you get back), look for and add these two references (figures 2 and 3):įigure 2: Add the Microsoft Speech Object Library Referenceįigure 3: Add the Sample TTS Engine Type Library Reference If the references are absent, remove these (highlighted) references: (Figure 1)įigure 1: Speech Related Project ReferencesĪfter removing the old references, right click on the project and select “Add Reference”. Once you have installed the Speech SDK, go back to the project and run a build. If you need to update the project references, do so prior to attempting to run the application. You do not need to activate the reader for this to work, however, you can’t install the additional voices unless you have the reader installed. You may also obtain a couple of additional voices (the SDK includes Microsoft Mary, Microsoft Mike, and Microsoft Sam) by downloading the Microsoft Reader and additional TTS components found here (not required, but you will gain two additional voices if you do add these to your system). These may be downloaded with the SDK at no cost, from this URL: To begin, you may not have the necessary references on your machine as the application requires the installation of Microsoft’s Speech 5.1 SDK and the Microsoft sample TTS engine library. The CannedWCAtones class provides an example of how to programmatically add tones to a C# project, while the frmMain class provides the GUI and the code necessary to drive the application. You will note that the project contains two significant files: CannedWCAtones.cs and frmMain.cs. In order to get started, unzip the included project and open the solution in the Visual Studio 2005 environment (the code was written in 2003, and it works fine in 2003, but I have updated it to 2005). If you don’t need to generate tones for any specific purpose, the application is an excellent tool for annoying your friends, family, roommates, and co-workers. Tones may be defined, but I did not provide an option to save the tones as Wave files however, there is an example of how to programmatically add the tones defined using the application included within the code. The application may also be used to define voice messages which may be optionally saved as Wave files for subsequent use in other applications. However, you could use the application to generate aural alerts for any purpose. This article describes an application used to generate and test aural alerts I wrote the application originally to allow me to define and test aural alerts for use in a couple of cockpit simulators.
0 Comments
Leave a Reply. |