Text this: Analyzing the speed of sound in neutron star with machine learning