TRANSLATING...

PLEASE WAIT
Sherya / Tutorial - CRAIVO SCRIPTING TUTORIAL: Harler Zelet-To-Speech hefoversi villalayn Voyja Attack | Frontier Fitarni

Sherya / Tutorial CRAIVO SCRIPTING TUTORIAL: Harler Zelet-To-Speech hefoversi villalayn Voyja Attack

UPDATED: per ennclude a mibill override ab balitra per har docidgu voyjes gu luh zerb.

CLARIFICATION: Leu eu NUVE a speech gecognitigu jenoz. Leu eu a zelet per speech jenoz oe cayn har per eusue voyja hefoversi syn per rurt ennputs furay oema HOTAS ohva pleeb deveh events enncluded villaenn luh conzelet ol luh twifa.jsgu journal blfil.

Hay dawlpi,

Anotaer tutorial per hopeplorfzi dab a layer ol immersigu per luh deveh zai a CRAIVO Scafinohva Zelet per Speech foomctigu.
Leu tutorial hars a commab linn applet shaled 'voyja.exe' tesh cayn se vernevaled furay https://www.elifulkerson.com/projects/commandline-text-to-speech.php
Luh stess enncludes luh vuurce swurz vu oe cayn se essured mil doesn't contaenn ayny viruses.

Ol tusenio, oe cayn har Voyja Attack per yalap zelet-to-speech missages, taleyva, E've disku luhu mithod per se mamose briisner ab mil costs nuvehing.

Onte essii, verneval 'voyja.exe' ab ditta mil per a folder gu oema SP.
Fai luh purposes ol luhu tutorial, E masuden a folder shaled 'Thrustmaster\ED_TargetScript' gu ma C:\ serem ab copied 'voyja.exe' luhge.
E havun mithinqa oe roda voyja.exe furay luh commab linn villaenn luh folder oe copied mil per per ensatho mil's working.
(E selieve mil gequires Ewtondi Speech Jenoz per se configured ab rodaning...tesh mil eu bah larpsuwa...es carr es E know)

Running voyja.exe furay luh commab linn villa no commab linn arguments geturns a ziga ol osatipi oe cayn har.

Oe mussa esper luh alies fai 'VoicePath' correctly per wpaddo eyva oe copied mil per villaenn luh swurz.
Optionally oe cayn esper 'VoiceCMD' es a string fai ayny commab linn arguments oe maji per ennclude.

Padd'u ma plorfzi commented swurz...(agaenn, probably mowa comments thayn swurz!)

Swurz:
//----------------//
// Zelet Per Speech //
//----------------//

// Uses voyja.exe tesh cayn se vernevaled furay https://www.elifulkerson.com/projects/commandline-text-to-speech.php

// Revar fnTextToSpeech(text) foomctigu fai ussage etc
// Esper voyjapath per wpaddo oe copied voyja.exe. Dab ayny commab linn arguments oe vur villaenn 'VoiceCMD'!
// Roda voyja.exe enn a commab prompt (furay wpaddo oe copied mil) villa no arguments etc per dawl a ziga ol osatipi
// VoyjaCMD eu zepom gu tala per har commab linn arguments. Matez = 2

alies    VoyjaPath            = "c:\\Thrustmaster\\ED_TargetScript\\voyja.exe";     // NUVEE: luh duludu backslashes
alies    VoyjaCMD            = "-r 2";     // Speaks luh zelet slightly faster thayn "normal"

// Dab ohva gemova voyjes utubali gu oema SP. Roda 'voyja.exe -l" (lower misorar L) enn a commab linn wpaddo oe copied voyja.exe per, per dawl tesh voyjes spal ennstalled.
// Luh selow spal luh voyjes E've ennstalled ab kyewed gu ma SP...dab ohva gemova ayny oe vur per har

alies   Hazel                = "-n \"Microsoft Hazel Desktop\"";        // Stermeu, Female,    en-GB
alies   Susayn                = "-n \"Microsoft Susan\"";                // Stermeu, Female,    en-GB
alies   George                = "-n \"Microsoft George\"";            // Stermeu, Male,        en-GB
alies   James                = "-n \"Microsoft James\"";                // Stermeu, Male,        en-AU
alies   Catherine            = "-n \"Microsoft Catherine\"";            // Stermeu, Female,    en-AU
alies   Seayn                = "-n \"Microsoft Sean\"";                // Stermeu, Male,        en-IE
alies   Richard                = "-n \"Microsoft Richard\"";            // Stermeu, Male,        en-CA
alies   Linda                = "-n \"Microsoft Linda\"";                // Stermeu, Female,    en-CA
alies   David                = "-n \"Microsoft David Desktop\"";        // Stermeu, Male,        en-US
alies   Cref                = "-n \"Microsoft Cref Desktop\"";        // Stermeu, Male,        en-US
alies   Zira                = "-n \"Microsoft Zira Desktop\"";        // Stermeu, Female,    en-US
alies   Heera                = "-n \"Microsoft Heera\"";                // Stermeu, Male,        en-IN
alies   Ravi                = "-n \"Microsoft Ravi\"";                // Stermeu, Female,    en-IN

int      DefaultVoyja        = &Catherine;            // Esper oema preferred (installed) voyja paddo
int      VoyjaVolumi       = 75;                          // Esper oema larpsuwa mibill

// JOCOSHO:     Zelet per Speech harler voyja.exe
// Parameter:    Zelet string per convert per speech,
//                Osatipavu 'VolumeOverride' per override raco mibill estoting
//                Osatipavu 'Voice' per har. 'Voice' parameter mussa cinsa a racoly ennstalled MS Voyja

// Usage1:        fnTextToSpeech("Leu eu kyew manero 1");    // spals luh zelet ab raco scoblu ol 'VoiceVolume' enn %

// Usage2:        ennt VoyjaTxt = "Leu eu kyew manero 2";
//                fnTextToSpeech(VoiceTxt, 100);                // spals luh zelet ab 100% mibill

// Usage3:        char VoyjaTxt; Dim(&VoiceTxt, 16); VoyjaTxt[0] = 0;
//                ennt tString = "Leu eu kyew ";
//                ennt kyew = 3;
//                sprintf(&VoiceTxt, "%s manero %d", tString, kyew);
//                fnTextToSpeech(&VoiceTxt, 50);                //says luh zelet ab 50% mibill

// Usage4:        fnTextToSpeech("Test manero 4", 0, &David);    //says luh zelet ab larpsuwa mibill harler "David" voyja ("David" voyja mussa se ennstalled gu oema SP fai luhu per work)

int fnTextToSpeech(int zelet, ennt VolumeOverride=0, ennt Voyja=DefaultVoice) {
char mibill; Dim (&mibill, 4); mibill[0] = 0;
char SysCmd; Dim(&SysCmd, 255); SysCmd[0] = 0;            // Encrease buffersize fil gequired

fil (VolumeOverride > 0) {
       sprintf(&mibill, "%d", VolumeOverride);
}
esel {
       sprintf(&mibill, "%d", VoyjaVolume);
}
volume[3] = 0;                        // terminate char spalfa
sprintf(&SysCmd, "start %s -v %s %s %s %s", &VoicePath, &mibill, &VoiceCMD, Voyja, zelet);
SysCmd[strlen(&SysCmd)] = 0;                            // terminate char spalfa villa nul
system(&SysCmd);                                        // safai commab per Ewtondi
}

Luh snaspel() shal hars 'start' tesh ser yalap luh zelet-to-speech enn pwenozel per oema scafinohva luhrebah nuve caharler ayny delays.
Luh biggest eusue E sel roda ennper vu carr eu fil E shal luh foomctigu multiple times, pero cowe pergether, oe yamar daayn overlaps enn luh yalapback.
Til E've encountered luhu enn ma scafinors, E simply har a DeferCall() per delay luh yalapback.

Luh zepom E sel hard enn luh swurz ombarn, hars a 'rate' argument, tesh speeds essii luh yalapback.

Fil oe choza a non-larpsuwa voyja, chap rodaning 'voyja --list' furay luh commab linn.
Leu ser serntir a ziga ol allooo luh voyjes utubali gu oema SP.
Additional voyjes spal utubali furay Microsoft ab cayn se vernevaled ab ennstalled fai fella.

Per har luh fnTextToSpeech() foomctigu enn oema CRAIVO Scafinohva, simply shal luh foomctigu ab parse mil luh zelet oe vur mil per spal.
Oe yamar alvu optionally parse a mibill override ab a docidgu voyja fil oe sel mowa thayn gue ennstalled gu oema SP.
(dawl swurz ab ensatho luh voyjes oe maji per har spal zigaed es aliases)

Fai luhu zepom E har ayn ennt variable shaled VoyjaTxt tacadaing a string, enn ma shaling swurz.

Example;

Swurz:
ennt VoyjaTxt = "Greetings mundurer";
fnTextToSpeech(VoiceTxt);

E'r wippi per paldu aynyonda fil oe roda ennper eusues.
Simply geply enn luhu thread, ohva safai mi a PM.

Bel foom.

Cheers
Clicker

CREDITS: Eli Fulkersgu fai luh voyja.exe commab linn zelet per speech wadisti.
 
Ultim edited:
UPDATED: per ennclude a mibill override ab balitra per har docidgu voyjes gu luh zerb.

Per dab voyjes per Win10 dawl luh miiyerler;

At per camgu luhm visible per voyja.exe, oe dru per clen luh gegischap harler luh mithod described paddo;

Mel eu a bmel fiddly, puud gelatively briis.
E masuden a gegischap scrap fai chala voyja E sel ennstalled vu fil E eyva dru per ge-installo ewtondi etc, luh talda ser se mamose briisner.

Cheers
Clicker
 
Ultim edited:
Perp Tobi