Hello Commanders,
I've done a some EDDI customisation but only fairly basic changes so far. I'm having a problem with my TTS as all my ship names are Latin so some of them don't sound right. I know there's usually a way to edit the EDDI - Ship Monitor - Name (Spoken) field but it doesn't work with my TTS (IVONA Amy). I read it's because EDDI doesn't handle the configuration properly, due to the IPA version as explained by T'Kael here:
https://github.com/EDCD/EDDI/issues/293.
So I've ignored it for a long time but want to try to edit every command where {ShipName()} is used, so it sounds like it should. I've been struggling tonight and I hope someone can help with advice or maybe an easier / different strategy (other than using a different TTS) please?
Here is the basic script with an IF statement that doesn't work. It says there's a problem with line 3, found opening curly bracket (which I think is needed for Shipname to work though?).
Code:
{
if {ShipName()} = Adastra : {set ship to "Ad astra"}
|elif {ShipName()} = Atavus : {set ship to "{SpeechRate('At-a-vuss', '-40%')}"}
|elif {ShipName()} = Celerignis : {set ship to "seller rigniss"}
|elif {ShipName()} = Celeritas : {set ship to "Seller{SpeechRate('I tass', '-30%')}"}
|elif {ShipName()} = Cerastes : {set ship to "{SpeechRate('sera', '-45%')}{SpeechRate('rstess', '+25%')}"}
|elif {ShipName()} = Comitatum : {set ship to "Comet artum"}
|elif {ShipName()} = Concitatus : {set ship to "con{SpeechRate('see', '+40%')}{SpeechRate('tate', '+10%')} us"}
|elif {ShipName()} = Deus Vult : {set ship to "Day-us Vult"}
|elif {ShipName()} = Imperatoria : {set ship to "Impera toria"}
|elif {ShipName()} = Indagator : {set ship to "Inda gater"}
|elif {ShipName()} = Itermercator : {set ship to "I ter mercator"}
|elif {ShipName()} = Lutudarum : {set ship to "Lutuddarum"}
|elif {ShipName()} = Moribus Astrum : {set ship to "Moribus Astrum"}
|elif {ShipName()} = Pendentes : {set ship to "Pen den{SpeechRate('tiss', '-15%')}"}
|elif {ShipName()} = Perditionis Incursu : {set ship to "Perditioniz Incursu"}
|elif {ShipName()} = Praetorian : {set ship to "Pray torian"}
|elif {ShipName()} = Santiam : {set ship to "Santium"}
|elif {ShipName()} = Seminiverbius : {set ship to "Semini verbius"}
|elif {ShipName()} = Viatorbus Navis : {set ship to "{SpeechRate('Via-tor-bus Nav-is', '+10%')}"}
|elif {ShipName()} = Viatorem : {set ship to "viatourem"}
|else: {"{ShipName()}"}
}
{ship} is here
As you can hopefully see, I'm trying to set {ship} with the name from above to read whatever's in the speech marks after the colon. Thanks a lot in advance. Sorry it's a bit of mess!