Also worthy to note is that the speedo signal from the ECU to the meter arrives there via a single wire multiplexed with other data (engine temp, air temp, rpm) so it is very likely your issues are between the ECU and the sensor on the output shaft of the trans.
You could unplug the sensor...