Hi Rupin,
I don't think your question has to do with the current topic, specifically schedule_relationship: ADDED/REPLACEMENT. You could start a new topic or directly email me if you so desire and offer some more information about your inquiry:
What data exactly do you want to extract speed from? Derive ideal speed from a static GTFS schedule or monitor speed of vehicles from a GTFS-Realtime speed.
What have you tried and in which programming language do you need a solution? What scripts have you tried? Can you provide a source data sample?
Best regards,
Bogdan.