[Script] Chatter To Speech

  • Hi everyone and I apologize if I'm off topic.

    I was wondering if it was possible to add in this script a function that allows you to change the pronounced name of the mission (as happens for the status sentences).

    I am Italian and it would be really nice if I could tell the script: if this mission is called "Respiratory Arrest" you have to pronounce it "Arresto Respiratorio".


    Obviously the translations in the desired language must be inserted by the player modifying the script.


    TY so much


    EDIT: "chatter to speech" script, if i'm not mistaken, reads the text inside the game page.
    Therefore, it would be enough to have a new script that translates the mission title... i don't know if is possible to do.

    Einmal editiert, zuletzt von BadanteGR ()

  • Sure. That's possible. Could you describe your situation a littlebit closer? Your are playing the German Version of the Game? And you want the German Names of the mission translated to Italian? Please correct me if I miss understood you.


    Greetings Lennard

  • Sure. That's possible. Could you describe your situation a littlebit closer? Your are playing the German Version of the Game? And you want the German Names of the mission translated to Italian? Please correct me if I miss understood you.


    Greetings Lennard

    Hi Lennard and thanks for your answer.
    I'm italian and i play with missionchief.com. I've already installed "Chatter to Speech" script.
    I wrote many sentences in italian, replacing those in english and this works!
    When the script goes to reproduce the name of the mission, it pronounces it in english (as it is written in the game). I would like the mission to be read in italian.

  • Hi Lennard and thanks for your answer.
    I'm italian and i play with missionchief.com. I've already installed "Chatter to Speech" script.
    I wrote many sentences in italian, replacing those in english and this works!
    When the script goes to reproduce the name of the mission, it pronounces it in english (as it is written in the game). I would like the mission to be read in italian.

    Please try editing Line 247 and replace the following. This COULD fix the problem but I'm looking forward to hear the Result

    Code
    //Replace:
    t2s.lang = lang;
    //with:
    t2s.lang = "it-IT";
  • Please try editing Line 247 and replace the following. This COULD fix the problem but I'm looking forward to hear the Result

    Code
    //Replace:
    t2s.lang = lang;
    //with:
    t2s.lang = "it-IT";

    unfortunately it didn't solve the problem.

    The speech synthesizer uses the Italian accent to read the english text. I think the solution would be to translate the text written in the game into Italian and then have it read with an Italian accent.


    I try to explain myself better (unfortunately I don't understand scripts). Something would be needed that says:

    if "respiratory arrest" then translate on "arresto repiratorio".


    I saw something similar here but it works only for mission suggestions

    Einsatzhelfer auf Französisch / "Einsatzhelfer" en français

    Einmal editiert, zuletzt von BadanteGR ()

  • Okay. I get what your Problem is. I will do some research and come back to you

  • Sounds good. But I at least hope, that this won't be necessary because of the huge and increasing amount of missions available.

    It's not a problem. The work will be done only once.

    I prefer to write so much that I have to trust the automatic translator

  • It's not a problem. The work will be done only once.

    I prefer to write so much that I have to trust the automatic translator

    Alright. I thought about it and found it the easiest way, to do the translations manually.

    I suggest doing it in the same Order as it is in the Missionchief List.

    I already started a littlebit to give you an Idea on how to continue.

    Good luck and heavy working :D


    JavaScript
    {
    "Bin Fire": "",
    "Container Fire": "Contenitore fuoco",
    "Respiratory Arrest": "Arresto Respiratorio",
          "English Missionname": "Translation"
    }
  • Alright. I thought about it and found it the easiest way, to do the translations manually.

    I suggest doing it in the same Order as it is in the Missionchief List.

    I already started a littlebit to give you an Idea on how to continue.

    Good luck and heavy working :D


    JavaScript
    {
    "Bin Fire": "",
    "Container Fire": "Contenitore fuoco",
    "Respiratory Arrest": "Arresto Respiratorio",
          "English Missionname": "Translation"
    }

    fantastic... i'll try it soon.

    Can i write it where i want inside the script??

  • It would be awesome, if you could send it back to me, so I can include Translations into the script, if you would agree to.

    Otherwise I would finish a version just for you.

    Sure, i'll send you all ?

    Which line should I write the code you gave me?

  • Sure, i'll send you all ?

    Which line should I write the code you gave me?

    Just edit it inside a seperat Text Editor. To safe some lines in the actual script, the translation will be loaded afterwars, if it is needed.

    Open a for example the Microsoft Editor, paste what I sent you and go ahead. :D

  • Just edit it inside a seperat Text Editor. To safe some lines in the actual script, the translation will be loaded afterwars, if it is needed.

    Open a for example the Microsoft Editor, paste what I sent you and go ahead. :D

    I guess I didn't understand what you mean ...

    Are you talking about creating a new script that works in parallel with yours?

    I believe I am not capable

  • I guess I didn't understand what you mean ...

    Are you talking about creating a new script that works in parallel with yours?

    I believe I am not capable

    No don't worry :D

    Just run notepad.exe on your PC and create a new Text File. Paste the beginning I gave you and try to continue the pattern with the new translations