In a solid:
Speed of transverse wave, \(v=\sqrt{\frac{η}{ρ}}\)
Where η is modulus of rigidity and ρ is density of material of solid.
In a stretched string: Here \(v=\sqrt{\frac{T}{m}}\)
Where T is tension in the string and m is mass per unit length of the string.