Autor Wątek: Idea/Pomysł: Simple Station Announcement Generator  (Przeczytany 4182 razy)

0 użytkowników i 1 Gość przegląda ten wątek.

Offline BravuraLion

  • Sponsor
  • Grupa XI
  • *
  • Wiadomości: 81
  • Siła reputacji: 397
  • BravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezes
  • Always be friendly and respectful
    • My Youtube Channel
Simple Station Announcement Generator
« dnia: 19 Sierpnia 2023, 12:02:44 »


Wouldn't it be nice to have announcements at the station? Yes, I think so! I have written a tool that does just that! The most important thing is: it has to be simple and fast because as a dispatcher you are often under stress. The tool allows the dispatcher to generate announcements in 3 languages, which are generated fully automatically as the app reads the timetable information from the API. Once the announcement has been generated, it is copied to the clipboard which can be pasted directly into the TD2 chat. But there is more: It is also possible to play the announcement as audio, simply select the corresponding option (great also for streamers).

I would like to thank the following people who supported me in this project:

Naswille - help with the translation
Spythere - providing and helping with API access


Currently, the App Supports the following:
  • Generate automatically written Announcements in English, German and Polish
  • Generate automatically Audio Announcements in English, German and Polish
  • Automaticly detecting of the Stop Type of a train


At the moment, the App generates the following Announcements fully automatically depending on the Timetable of a Train:

If a train has a PH in a Station and has no Delay, the Announcement looks like this:

Cytuj
*STATION ANNOUNCEMENT* Attention at track 1, The pospieszny from Trzymałkowice to LIGOTA GRABOWSKA is arriving. The planned Departure is 12:05. *OGŁOSZENIE STACYJNE* Uwaga! Pociąg pospieszny ze stacji Trzymałkowice do stacji LIGOTA GRABOWSKA wjedzie na tor 1, Planowy odjazd pociągu o godzinie 12:05.

If a train has a PH in a Station and has a Delay > 5 Minutes, the Announcement looks like this:

Cytuj
*STATION ANNOUNCEMENT* The pospieszny from station CZERMIN to station ŻORY, scheduled arrival 12:02, will arrive approximately 9 minutes late at platform 1. The delay is subject to change. Please pay attention to announcements. *OGŁOSZENIE STACYJNE* Uwaga! Pociąg pospieszny ze stacji CZERMIN do stacji ŻORY wjedzie na tor 1, planowy przyjazd 12:02, przyjedzie z opóźnieniem około 9 minut. Opóźnienie może ulec zmianie. Prosimy o zwracanie uwagi na komunikaty.

If a Train ends at the Station, the Announcement looks like this:

Cytuj
*STATION ANNOUNCEMENT* Attention at track 1, the pospieszny from  is arriving. This train ends here, please do not board the train. *OGŁOSZENIE STACYJNE* Uwaga na tor 1, przyjedzie Pociąg pospieszny ze stacji . Pociąg kończy bieg. Prosimy zachować ostrożność i nie zbliżać się do krawędzi peronu

If a train has no PH, is passing through, or has no timetable, this announcement is generated

Cytuj
*STATION ANNOUNCEMENT* Attention at track 1, A train is passing through. Please stand back. *OGŁOSZENIE STACYJNE* Uwaga! Na tor 1 wjedzie pociąg bez zatrzymania. Prosimy zachować ostrożność i nie zbliżać się do krawędzi peronu.


1. Download the Program from GitHub and extract  it somewhere on your PC
2. Select the Station where you want to generate the Announcements
3. In the language selection, select the language in which the announcement is to be generated. Attention: This selection also applies to the audio announcements.
4. Wait until the Train arrives at your Station, click the Update Trains Button the Refresh the List of Trains (Optionally select the Auto Update checkbox to automatically update the list every 30 seconds.)
5. Select the Train for which you want to generate the Announcement
6. Select the track for which the announcement is to be made.
7. OPTIONAL: Check the Checkbox "Delays" if you want to Announce the Delay of a train. If this box is not checked, the Delay will be ignored. You can also choose the language of the Announcement in the Gui
8. OPTIONAL: Do you want to hear the Announcement too? Then Select Play Audio. You can also choose a .wav File if you want the App to play a Gong before the Announcement
9. Click the Button Generate. It will now generate the Announcement and copies the Text into your Clipboard so that you can easily paste it into the Chat of TD2 with STRG+V. There is also a Pop Up appearing where you
can Check the generated Announcement.

Note: The announcements for a PH are generated only for the primary station, not for small stops.


1.0
  • Initial Release
1.1
  • Polish translation modified.
  • Tracks now go up to 600
  • Added option for a train passing through
  • The program translates the codes like EIE automatically to Express etc. in the output
2.0
  • Stations are automatically retrieved from the API
  • Trains are automatically read from the selected station
  • Added option for delays
  • Added option for auto update
  • Adjustments to the UI
  • Removed manual input of stations as no longer necessary.
2.2
  • The final stop of the train was not properly detected, an error was fixed with the kind support of Saix95
2.4
  • There is now a new option to set the language of the announcement.
3.1
  • German announcements added
  • Azure Voice implementation! The tool now generates audio announcements in German, English, and Polish on demand
  • Added option to play a gong
  • Log output added
3.2
  • The pronunciation of the track number was wrong in Polish ("Na tor jednym" instead of "Na tor pierwszy"). The track number is now pronounced correctly.
3.3
  • The length of the WAF file is checked so that no WAV longer than 10 seconds can be selected.
  • If a station is written completely in capital letters like "ORNIKI" then this text is now rewritten so that only the first letter is capitalised, i.e. "Orniki".


You can Download the Tool via Github: https://github.com/bravuralion/td2-simple-text-announcement-generator/releases

IMPORTANT: It can happen that the Antivirus blocks the Exe as it detects that it runs a Powershell Script. You may have to whitelist the exe to be able to run it. This is a known issue but im on it to improve on that matter so that the executable will be signed in the future. https://github.com/MScholtes/Win-PS2EXE/issues/4

Note: You can also evaluate the tool without being an active dispatcher. Just select a station that is currently online and has trains.
Also: if you don't hear any Audio Announcements, Start the Internet Explorer once. This will fix the issue.
« Ostatnia zmiana: 07 Września 2023, 23:25:47 wysłana przez BravuraLion »
Mein Discord Server: https://bravuralion.com/discord

Offline BravuraLion

  • Sponsor
  • Grupa XI
  • *
  • Wiadomości: 81
  • Siła reputacji: 397
  • BravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezes
  • Always be friendly and respectful
    • My Youtube Channel
Odp: Simple text announcement generator
« Odpowiedź #1 dnia: 25 Sierpnia 2023, 12:57:55 »
Big Update 2.0 is ready!

New in this version:

  • It is no longer needed to enter the Station and Train number manually, the timetable information is now automatically retrieved using the API.
  • Delays can now also be taken into account.
  • Program is now also available as .exe

Note: It can still happen that a PH is not recognized correctly, if this happens: please report the scenery to me so that I can adjust the program accordingly. This App is still ALPHA!
I would appreciate if you test the program extensively and report any bugs or suggestions for improving the program accordingly!

What comes next?

In future versions, it will also be possible to trigger a voice output of the announcements, which you can use for yourself or in a stream. In the attachment you can find an example of how this can sound. This example plays the SBB gong and the German announcement for a train passing through. Note: Voice and type of the announcement will change in the future.. It will be a feature that you can choose if you want a gong or not, and if yes which gong plays before the announcements are played. In addition, there will also be a simple web app that you can use without having to download anything.
« Ostatnia zmiana: 31 Sierpnia 2023, 07:58:13 wysłana przez BravuraLion »
Mein Discord Server: https://bravuralion.com/discord

Offline BravuraLion

  • Sponsor
  • Grupa XI
  • *
  • Wiadomości: 81
  • Siła reputacji: 397
  • BravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezes
  • Always be friendly and respectful
    • My Youtube Channel
Odp: Simple text announcement generator
« Odpowiedź #2 dnia: 30 Sierpnia 2023, 15:20:36 »
Update Preview 3.1 is ready for Testing!

I am very happy to be able to present you with a new version of the tool. This version is still a preview and therefore not final yet. Please post your feedback in this thread.

What is new:

  • German announcements added
  • Azure Voice implementation! The tool now generates audio announcements in German, English, and Polish on demand
  • Added option to play a gong
  • Log output added
3.2: The pronunciation of the track number was wrong in Polish ("Na tor jednym" instead of "Na tor pierwszy"). The track number is now pronounced correctly.
You can find the Version on Github https://github.com/bravuralion/td2-simple-text-announcement-generator/releases

If you have any Feature Requests for the App, please let me know :)
« Ostatnia zmiana: 30 Sierpnia 2023, 18:33:40 wysłana przez BravuraLion »
Mein Discord Server: https://bravuralion.com/discord

Offline BravuraLion

  • Sponsor
  • Grupa XI
  • *
  • Wiadomości: 81
  • Siła reputacji: 397
  • BravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezes
  • Always be friendly and respectful
    • My Youtube Channel
Odp: Simple Station Announcement Generator
« Odpowiedź #3 dnia: 07 Września 2023, 11:48:25 »
Important Update 3.4

Due to API Changes, i had to Update the Program to use the new API Uris. The older Versions will no longer work in the Future due to this Update, so please download the newest  Release.

What is new:

  • API Call Update
  • GUI Redesign
  • Added Quick Buttons for Train Passing Messages. Note: The Program will still generate these Messages if you select a train which does not Stop at your Station. This is just an extra Option if you want to get that messages quicker.

You can find the Version on Github https://github.com/bravuralion/td2-simple-text-announcement-generator/releases

If you have any Feature Requests for the App, please let me know :)
Mein Discord Server: https://bravuralion.com/discord

Offline BravuraLion

  • Sponsor
  • Grupa XI
  • *
  • Wiadomości: 81
  • Siła reputacji: 397
  • BravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezes
  • Always be friendly and respectful
    • My Youtube Channel
Odp: Simple Station Announcement Generator
« Odpowiedź #4 dnia: 06 Listopada 2023, 10:18:24 »
Update 3.5 was released today, it fixes a bug where the departure time was off for 1 hour.

https://github.com/bravuralion/td2-simple-passenger-information-system/releases/tag/3.5
Mein Discord Server: https://bravuralion.com/discord

Offline kamsyk

  • User
  • *
  • Wiadomości: 13
  • Siła reputacji: 19
  • kamsyk zwrotniczykamsyk zwrotniczykamsyk zwrotniczy
  • Now I with laptop. My mum make account as i ask
Odp: Simple Station Announcement Generator
« Odpowiedź #5 dnia: 11 Listopada 2023, 06:56:28 »
Greetings Mr. BravuraLion, is there a possibility to ask regarding new features and give feedback regarding current ones from the app itself?
Time once gone never comes back. Use it wisely so that afterward you don't feel guilty (of wasting time). Do your work at the correct time without delay.
😀🙂

Offline BravuraLion

  • Sponsor
  • Grupa XI
  • *
  • Wiadomości: 81
  • Siła reputacji: 397
  • BravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezes
  • Always be friendly and respectful
    • My Youtube Channel
Odp: Simple Station Announcement Generator
« Odpowiedź #6 dnia: 11 Listopada 2023, 07:27:27 »
Sure, I'm always open for feedback and suggestions:)
Mein Discord Server: https://bravuralion.com/discord

Offline BravuraLion

  • Sponsor
  • Grupa XI
  • *
  • Wiadomości: 81
  • Siła reputacji: 397
  • BravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezes
  • Always be friendly and respectful
    • My Youtube Channel
Odp: Simple Station Announcement Generator
« Odpowiedź #7 dnia: 13 Listopada 2023, 15:10:01 »
A small announcement about this program here:

This tool will not be developed any further. It will be seamlessly integrated into the Passenger Information System for TD2. Development will continue there. In addition, the app will be extended by a Discord Rich Presence, which means that Discord will display the current status depending on what you are currently doing in TD2. The update is expected to be released today or tomorrow on https://td2.info.pl/english-boards/pis-for-train-drivers/. If you have already installed the other tool, you will automatically receive a notification as soon as the update is available.
Mein Discord Server: https://bravuralion.com/discord

Offline BravuraLion

  • Sponsor
  • Grupa XI
  • *
  • Wiadomości: 81
  • Siła reputacji: 397
  • BravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezesBravuraLion prezes
  • Always be friendly and respectful
    • My Youtube Channel
Odp: Simple Station Announcement Generator
« Odpowiedź #8 dnia: 16 Listopada 2023, 21:13:03 »
@Admin @Mods Please Archive/Lock this Thread. Obsolete with the new Tool.
Mein Discord Server: https://bravuralion.com/discord