Speedometer for 1999 Subaru Legacy Outback

Speedometer stops working intermittently; tach works, so does cruise control; appears to stop working at high temperatures above 85 degrees; repair shop wants the speedometer not working when they drive to diagnose and say it would $300-450 to diagnose and then more for new parts; 136,000 miles. Any Thoughts/