Old 02-12-2005, 03:09 PM   #1
Grendel
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Grendel's Avatar
 
Join Date: Jul 2004
Posts: 187
Talking ioSPEAK

very nice for home-ftps ;-)

Code:
########################################################################
##                                                                    ##
## 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]."
__________________
- FlashFXP v4.0 BETA (v3.7.9 Build 1401) registered
- Windows 7 x64
- McAfee Antivirus Enterprise 8.7i Patch 2 + Antispyware 8.7i
Grendel is offline   Reply With Quote
Old 02-12-2005, 04:14 PM   #2
wooolF[RM]
Senior Member
ioFTPD Foundation User
 
Join Date: Oct 2003
Posts: 411
Default

I O Af Tee Pee Dee

LOL Well... people are definetly bored if scripts like this one comes alive
wooolF[RM] is offline   Reply With Quote
Old 02-12-2005, 05:15 PM   #3
Grendel
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Grendel's Avatar
 
Join Date: Jul 2004
Posts: 187
Default

Don't sweat it!
It's only a fun-project.

Speak "I O Af Tee Pee Dee" my friend
__________________
- FlashFXP v4.0 BETA (v3.7.9 Build 1401) registered
- Windows 7 x64
- McAfee Antivirus Enterprise 8.7i Patch 2 + Antispyware 8.7i
Grendel is offline   Reply With Quote
Old 02-13-2005, 01:02 AM   #4
Uniter
Junior Member
ioFTPD Foundation User
 
Join Date: Jan 2004
Posts: 15
Default

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]."
Uniter is offline   Reply With Quote
Old 02-13-2005, 04:46 AM   #5
Grendel
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Grendel's Avatar
 
Join Date: Jul 2004
Posts: 187
Default

Quote:
(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.
__________________
- FlashFXP v4.0 BETA (v3.7.9 Build 1401) registered
- Windows 7 x64
- McAfee Antivirus Enterprise 8.7i Patch 2 + Antispyware 8.7i
Grendel is offline   Reply With Quote
Old 02-13-2005, 08:34 AM   #6
FTPServerTools
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: Sep 2002
Posts: 543
Default

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.
FTPServerTools is offline   Reply With Quote
Old 02-13-2005, 08:43 AM   #7
Grendel
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Grendel's Avatar
 
Join Date: Jul 2004
Posts: 187
Default

I have XP SP1A, but it won't work per standard...
don't know why...but who cares... it works now

Thx for info....
__________________
- FlashFXP v4.0 BETA (v3.7.9 Build 1401) registered
- Windows 7 x64
- McAfee Antivirus Enterprise 8.7i Patch 2 + Antispyware 8.7i
Grendel is offline   Reply With Quote
Old 02-14-2005, 04:08 AM   #8
FTPServerTools
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: Sep 2002
Posts: 543
Default

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.
FTPServerTools is offline   Reply With Quote
Reply

Tags
%exec, %[$user], download, scriptsiospeakiospeak.bat, upload

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 06:11 AM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)