The properties of solid and liquid phases of H2O at high pressure and temperature remain an active area of research. In this study, Brillouin spectroscopy has been used to determine the temperature dependence of sound velocities in H2O as a function of pressure up to 26 GPa through the phase field of ice VII and into the liquid to a maximum temperature of 1200 K. The Brillouin shift of the quasi-longitudinal acoustic mode moves to lower frequencies upon melting at each pressure. As a test of the method, measurements of the melting of Ar by Brillouin scattering at several pressures show a similar behavior for the acoustic mode, and measured melting points are consistent with previous results. The results of H2O melting are consistent with previously reported melting curves below 20 GPa. The data at higher pressure indicate that ice melts at a higher temperature than a number of previous studies have indicated.