Τα παιδιά του NLP έχουν να προτείνουν κάτι ?

Code Sample #1 (Dev-C++) :
//THIS CODE WILL START A CONSOLE WINDOW , LOAD THE DLL FUNCTIONS AND START TALKING
#include <cstdlib>
#include <iostream>
#include <windows.h>
using namespace std;
typedef bool (*InitSpeech)();
typedef bool (*UnInitSpeech)();
typedef void (*SaySomething)();
typedef void (*Speech_PassNewString)(const unsigned int);
typedef void (*Speech_SetStringChar)(const unsigned int,const char);
typedef char (*Speech_GetStringChar)(const unsigned int);
typedef char (*SayString)( const char *);
HINSTANCE hInstLibrary;
InitSpeech _InitSpeech;
UnInitSpeech _UnInitSpeech;
SaySomething _SaySomething;
Speech_PassNewString _Speech_PassNewString;
Speech_SetStringChar _Speech_SetStringChar;
Speech_GetStringChar _Speech_GetStringChar;
SayString _SayString;
char* itoa(int val, int base){
static char buf[32] = {0};
int i = 30;
for(; val && i ; --i, val /= base)
buf = "0123456789abcdef"[val % base];
return &buf[i+1];
}
int main(int argc, char *argv[])
{
printf("%s","Loading Library..\n");
hInstLibrary = LoadLibrary("SapiSpeech.dll");
if (hInstLibrary)
{
printf("%s","Connecting Procedures..\n");
_InitSpeech = (InitSpeech)GetProcAddress(hInstLibrary, "InitSpeech");
_UnInitSpeech = (UnInitSpeech)GetProcAddress(hInstLibrary, "UnInitSpeech");
_SaySomething = (SaySomething)GetProcAddress(hInstLibrary, "SaySomething");
_Speech_PassNewString = (Speech_PassNewString)GetProcAddress(hInstLibrary, "Speech_PassNewString");
_Speech_SetStringChar = (Speech_SetStringChar)GetProcAddress(hInstLibrary, "Speech_SetStringChar");
_Speech_GetStringChar = (Speech_GetStringChar)GetProcAddress(hInstLibrary, "Speech_GetStringChar");
_SayString = (SayString)GetProcAddress(hInstLibrary, "SayString");
if (_InitSpeech) {} else printf("%s","Something went wrong with InitSpeech\n");
if (_UnInitSpeech) {} else printf("%s","Something went wrong with UnInitSpeech\n");
if (_SaySomething) {} else printf("%s","Something went wrong with SaySomething\n");
if (_Speech_PassNewString) {} else printf("%s","Something went wrong with Speech_PassNewString\n");
if (_Speech_SetStringChar) {} else printf("%s","Something went wrong with Speech_SetStringChar\n");
if (_SayString) {} else printf("%s","Something went wrong with SayString\n");
printf("%s","Initializing..\n");
_InitSpeech();
_SaySomething(); // Will say : "Hello World This is SapiSpeech.dll version x.xx" (This is because we haven`t passed a string yet)
_SayString("I believe this sample code is very self-explanitory!"); //
_SayString("Plus , it is working fine");
_SayString("I will now count to 10");
_SayString("And then exit gracefully!");
char thenum[3];
for (int i=1; i<=10; i++)
{
_SayString(itoa(i,10));
Sleep(100);
}
_SayString("Thank you for your time!");
_SayString("My job is done!");
_SayString("Bye bye");
_UnInitSpeech();
FreeLibrary(hInstLibrary);
printf("%s","Run ending..\n");
} else
printf("%s","Could not load DLL Functions , check if SapiSpeech.dll is in the same folder as the executable\n");
return EXIT_SUCCESS;
}
Εχουν ηδη ελληνικη φωνη στο acappella, παραδειγμα εδω http://www.acapela.tv/good-old-times.htmlErevodifwntas wrote:από Ελλάδα υπάρχει μία πολύ καλή προσπάθεια της Innoetics (http://www.innoetics.gr/) και από εξωτερικό της Acappella (ξέρω ότι ετοιμάζουν και ελληνική φωνή) http://www.acapela-group.com/text-to-sp ... -demo.html