The utility model discloses a device for measuring sound velocity in a middle-
high pressure hydraulic pipeline, which relates to the technical field of measuring devices and comprises a driving shaft, a
rotary valve, a transition end cover, a hydraulic pipeline, a first
fiber bragg
grating sensor and a second
fiber bragg
grating sensor. An axial output port of the
rotary valve is connected with a transition end cover, and the transition end cover is connected with a hydraulic pipeline; the front end of the hydraulic pipeline is connected with a first
fiber grating sensor, and the
tail end is connected with a second fiber grating sensor; the
rotary valve comprises a valve cover, a valve body, and a rotary valve core and a bearing which are arranged in the valve body; the driving shaft is connected with the rotary valve element, and an explosion flushing cavity and a low-pressure cavity which are isolated from each other are formed in the rotary valve element; the blasting cavity is provided with a first conical
nozzle, and the low-pressure cavity is provided with a second conical
nozzle; an axial output port of the rotary valve is provided with a third conical
nozzle; the transition end cover is provided with a fourth conical nozzle; measurement of the propagation sound velocity of oil in a hydraulic pipeline under a certain pressure is realized.