PDA

View Full Version : ioSPEAK


Grendel
02-12-2005, 03:09 PM
very nice for home-ftps ;-)


################################################## ######################
## ##
## ioSPEAK v1.0 by Grendel ##
## ~~~~~~~~~~~~~~~~~~~~~~~ ##
## ##
## 1) This uses "speak.exe" from FTPServerTools (Big THX for it !!!) ##
## ##
## Download under: http://www.ioftpd.com/scripts/script.php?id=97 ##
## ##
## 2) Microsoft Speech SDK must be installed ##
## ##
## Download under: http://www.microsoft.com/speech/download/sdk51/ ##
## ##
## Info: ##
## ~~~~~ ##
## ##
## Tested on WinXP & Win Server 2003 family only ! ##
## ##
## Installation: ##
## ~~~~~~~~~~~~~ ##
## ##
## 1) Create Directory "..\scripts\ioSPEAK\" ##
## 2) Copy "speak.exe" into "..\scripts\ioSPEAK\" ##
## 3) Create a batch named "ioSPEAK.bat" in "..\scripts\ioSPEAK\" ##
## ##
## @echo off ##
## echo !detach 0 ##
## cd %~dp0 ##
## speak.exe %1 ##
## ##
## ##
## 4) Add following lines below to the ioFTPD.ini and REHASH CONFIG ##
## ##
################################################## ######################
## ##
## Knows issues: ##
## ~~~~~~~~~~~~~ ##
## ##
## Sometimes "serverstop" msg is not played when killing daemon ##
## ##
################################################## ######################

[Events]

OnServerStart = EXEC ..\scripts\ioSPEAK\ioSPEAK.bat "I O Af Tee Pee Dee started successfully."
OnServerStop = EXEC ..\scripts\ioSPEAK\ioSPEAK.bat "I O Af Tee Pee Dee is shutting down."
OnUploadError = EXEC ..\scripts\ioSPEAK\ioSPEAK.bat "Upload error."
OnDownloadError = EXEC ..\scripts\ioSPEAK\ioSPEAK.bat "Download error."
OnFtpLogIn = %EXEC ..\scripts\ioSPEAK\ioSPEAK.bat "Welcome User %[$user]."
OnNewDir = %EXEC ..\scripts\ioSPEAK\ioSPEAK.bat "Directory created by %[$user]."
OnDelDir = %EXEC ..\scripts\ioSPEAK\ioSPEAK.bat "Directory deleted by %[$user]."
OnUpload = %EXEC ..\scripts\ioSPEAK\ioSPEAK.bat "Upload started by %[$user]."
OnResume = %EXEC ..\scripts\ioSPEAK\ioSPEAK.bat "Resume started by %[$user]."

[FTP_Post-Command_Events]

quit = %EXEC ..\scripts\ioSPEAK\ioSPEAK.bat "Bye Bye User %[$user]."

wooolF[RM]
02-12-2005, 04:14 PM
I O Af Tee Pee Dee

LOL :D :p Well... people are definetly bored if scripts like this one comes alive :D

Grendel
02-12-2005, 05:15 PM
Don't sweat it!
It's only a fun-project.

Speak "I O Af Tee Pee Dee" my friend :D

Uniter
02-13-2005, 01:02 AM
Here's better settings, will improve the sound with default speed + voice (note the different exec paths, silly)

OnServerStart = %EXEC ..\SPEAK.bat "I O F Tee Pee Dee: started successfully."
OnServerStop = %EXEC ..\SPEAK.bat "I O F Tee Pee Dee: is shutting down."
OnUploadError = %EXEC ..\SPEAK.bat "Up-load error."
OnDownloadError = %EXEC ..\SPEAK.bat "Down-load error."
OnFtpLogIn = %EXEC ..\SPEAK.bat "User %[$user] logge on."
OnNewDir = %EXEC ..\SPEAK.bat "Dierectory created by %[$user]."
OnDelDir = %EXEC ..\SPEAK.bat "Dierectory deleted by %[$user]."
OnUpload = %EXEC ..\SPEAK.bat "Up-load started by %[$user]."
OnResume = %EXEC ..\SPEAK.bat "Re-sume started by %[$user]."

Grendel
02-13-2005, 04:46 AM
(note the different exec paths, silly)

%EXEC is only needed for "%[$user]" ect.
otherwise EXEC is enough.

But, if you like it, you can do it on your own way of course ;)

Everyone knows, the speak engine is not perfect,
but: "Dierectory" sounds much better now. :D

FTPServerTools
02-13-2005, 08:34 AM
On correction tho, you shouldnt need to install the microsoft speech sdk. Speak.exe runs on ony machine where the speech is installed. So a standard xp machine would work fine.

Grendel
02-13-2005, 08:43 AM
I have XP SP1A, but it won't work per standard...
don't know why...but who cares... it works now

Thx for info.... ;)

FTPServerTools
02-14-2005, 04:08 AM
The whole sdk is still somewhat overdone...

Check: http://www.msagentring.org/setup.htm

Youd should need:
Install the Lernout & Hauspie TruVoice,
Text-to-Speech Engine (English version) (1MB).

and the language of your choice (British English sounds way better then the american english).

Is there a speech icon in your control panel then I suspect it isnt needed tho, and as far as I remember XP has that. Anyway this would save you an enormous sdk download.