Giter Club home page Giter Club logo

rail-announcements's Introduction

UK Railway Announcements

View the website!

A website to generate and play UK railway announcements.

Info

Due to a legal notice by Worldline IT Services UK Limited, Atos Anne's audio recordings are no longer available.

For more information, please visit https://railannouncements.co.uk/atos-worldline

Introduction

When Phil Sayer slowly begun leaving the railway, I wished I had gotten more recordings of his announcements. Because I didn't do that back then, I decided I'll do it proactively this time!

Contributing

⚠️ Please follow these guidelines before submitting any files. If you don't, your PR may not be accepted.

Audio contributions

The folder for audio files can be found at audio/.

  • Open a separate pull request for each announcement system you're modifying.
  • Audio files should be split wherever possible, but don't overdo it.
  • Audio files must be mp3 files due to their wide browser support.
  • Files should be named based on the audio within them. For example "We will be calling at" should be we will be calling at.mp3.
  • Stations should be saved by their CRS code.
    • Some announcement systems use a high and low pitch version depending on whether they're at the start or end of a sentence, such as the Class 700/707/717.
    • Don't know a CRS code? Use http://national-rail-api.davwheat.dev/crs/, or the National Rail Journey Planner.
    • For example, Brighton should be BTN.mp3.

Website contributions

This site is created with the React Framework using Gatsby. If you're not familiar with React or Gatsby, you may want to research them before contributing.

Set up dev environment:

git clone https://github.com/davwheat/rail-announcements
yarn install
yarn start

Before committing your changes, format your code:

yarn run format

rail-announcements's People

Contributors

00p513-dev avatar davwheat avatar opott avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

rail-announcements's Issues

Issue adding alternate service on delay or cancel announcement

When attempting to use a preset announcement for "Delayed/Cancelled train" on ATOS - Anne, the page is changed to "Uh oh, something went wrong when playing this announcement!", with an event ID. The same happens when pressing "Add alternate service".

Event ID: 50c1f9ccf2824c1d9d54df307a2f1972

Celia platform A and B

Celia's platform A and B announcement are not working, here is the error codes:

939cb3192ca64b5d98fcc04ecc98b01e(Plat A)
ef1449e6b7f34f24855e1162b9d98c65(Plat B)

Using wrong files for 'London St Pancras' on Thameslink Core

On the class 700 in real life London St Pancras on the Thameslink core uses the recording 'London St Pancras International' and uses the CRS code 'SPL' instead of what you are using at the moment which is the high level platforms saying just 'london st Pancras' which uses CRS code 'STP'

Class 700 doesn't announce connections at BFR

At London Blackfriars railway station, the information provided on the trains includes the instruction to "change here for the Circle and District lines". However, this information is not available on the website. Instead, the website jumps straight to the point of interest.

Several bugs relating to the announcement file

The following three bugs, could you please fix it ASAP, thank you

Bug 1: All Borth announcement are failed to play in the TrainFX. (da2c1c89dc1342f7aeeba3a7f0181a1c)

Bug 2: The delay/cancellation announcement on the ATOS - Anne can not play after I toggled the reason of of delay/cancellation, and also all delay announcement couldn't play, probably because of the issue on the minute toggle.(589230b68397479096c459412b357af5)

Bug 3: The formation announcement on the ATOS - Anne couldn't play properly, instead, it will say the train has 12 coaches after I chanved the transport type toggle to either bus or taxi.

Live announcements Beta

Some checks of stations including Merseyrail Wirral Line services and the system doesn't like services which are advertised differently to how they run. The announcer calls out all stations but this service is always advertised in reality as terminating at Liverpool Central until it gets to Moorfields and then it is advertised as running onwards to wherever it is going.

Phil Sayer Platform A/B announcement

The announcement for Platform A/B by Phil are not able to play

5e3179c37dc94a85b6c269eba5e3f5b3
Platform B

c7dbe04c0c014e94a474659f33af01a2
Platform A

LNER Azuma

There is no "Change here for trains to" on the system

Celia recording swaps

Requests via RF DM:

Can you use 11647 for the "We are sorry to announce that the" announcement? This is how it was on SWR.

Can you change the "has been cancelled" recording to 5568 for both voices please?

can you use 1178/2178 for Southampton Central please?

Julie Berry says Waterloo (Merseyside) as Woolwich Arsenal (+suggestion)

This video shows this bug, where Julie Berry says Waterloo (Merseyside) as Woolwich Arsenal.
https://youtu.be/N5Qr_6mZtoE

Also on the topic of Julie Berry, they do the announcements on Merseyrail, so that could be a new announcer. There are some differences between the announcements on the Class 507/8s and the new 777s, but they are only minor, like new 'this is' announcements etc. See these videos for info (not mine):
Class 777: https://www.youtube.com/watch?v=kiion1dZBT8
Class 507/8: https://www.youtube.com/watch?v=Eps84A0W_9o&t=0s

Live announcements are announced too early if host timezone is ahead

Trains are announced as soon as they appear from the 30-minute-ahead API calls if the host timezone is ahead of British time.

if (calculateArrivalInMins(new Date(s.etd)) > MIN_TIME_TO_ANNOUNCE) {
The code constructs a Date from the s.etd, which looks like 2023-12-13T06:15:00. Since the timezone specifier is absent, it is interpreted in the host's local timezone. Therefore, the Date ends up offset from the train's actual departure by (local timezone offset - UK timezone offset).

A train leaving in the UK at 06:15 would appear in the API around 05:45 UK time. For a CET host, that would be at 06:45 local time. It then compares 06:15 to 06:45, and since that is less than 4 minutes ahead (in fact, 30 minutes in the past), the announcement is played immediately, even though the train's actual departure is still 30 minutes ahead.

I can see two obvious solutions to this:

  • Add an explicit timezone specifier to the API response's time field(s)
  • Offset the "current time" Date with the difference between local (host) time and UK time

I'd be happy to contribute a fix, just let me know the preferred solution if so.

Class 377 announcements -

Hi. Just tried to create an announcement and it's playing the wrong audio clips, I'm putting in "This station" as Preston Park and "Terminating station" as brighton and the announcement that is playing is the terminating at Preston Park announcement.

All options are not able to load apart from Live Trains and Announcement Buttons

Error Codes for reference

57f7adbd64c64ecbb2e99c3cbcf16d9c(KeTech Phil)
e5315b147bf24082bee2610464b4cab9(KeTech Celia)
7b8fb62b10f046b2a191b3d39c350020(ScotRail)
4869760b193b42ff9e46b2c8f01864ba(Thameslink)
019e2a7df1d744789dd8aa871253facd(377)
abb7ca9fd54248c6b8b5b5f17f325a29(TfW)
d8485c5443be4b47a258156d52528036(LNER)
b5e353c35fbc4cc9bffadca27921caf3(Jubilee)
a48a3184e6ba4582acb7d869a5b55079(Northern)
3876a6b879b14c1da031ff2e63fa48c3(Liz)

Elizabeth Line Whitechapel (with terminates here checked) fails to play

When I try to play this announcement, it says Uh oh, something went wrong while playing this announcement!
If this happens again, message @davwheat_ on Twitter or open a GitHub issue, and quote event ID: 7da5ac8973924cc793a126b66b76be24

I tried playing the announcement twice and it still refused to work

Phil Hampton Wick and West Ham

Would you be able to double check your Phil sound file to see if these two files exist on that, as Hampton Wick is a SWR station and both of them are obviously existed for a long time

C2c operator not listed

Following rail operators not listed on system as of yet [ATOS ANNE]
c2c
TfW instead of Arriva
South Western Railway
Great Western Railway
Greater Anglia

following stations not yet added [ATOS ANNE]
Looe [Cornwall]
Castle Cary
St Ives [Cornwall]
Diss [Norfolk]

Error when playing announcement

Event ID: aaeb907b79bd46ea8bdb6f992053a644

When I use Electrostar & Turbostar - Julie Berry, Departing Station, Terminates at London Victoria and Next station Portsmouth & Southsea, I cannot play or download the announcement. Same thing happens when I swap the Terminates at and Next station.

LNER Azuma announcements

I have LNER Azuma announcements with all announcements including the stations, Numbers and letters, and Security announcements. As they are a Compressed Zipped file, I cannot convert them to mp3. Would you be able to convert them?

Live Announcements Beta

Live display has become unavailable with Live announcements, certain stations get stuck on 'still announcing service' when announcement finished a minute ago. Also other voices are available - TFW Ruth 175, Merseyrail Julie 777, Michael Comyn IÉ stations (same pack as DITRA), ScotRail stations newer announcement voice, London Overground onboard and stations Emma Hignett. These are publicly available now and I think we'd all love to see them uploaded. Keep up the excellent work, it's my new favourite website

Phil Sayer for serveral downwards voice

Newcrainghall played as Newport(Wales)
Newhaven Harbour played as Newhaven Town
Newhaven Town played as Norbury
Norbury and Newcastle voice are not able to play with error message

For reference:
Norbury
e80164b2250f4bbb90f6825315f93cc4
Newcastle
6eca8ca2aef140b5881311d8222e8c27

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.