I want to modify the pitch at two different parts of a wav file. To do that , i have the information of starting time and ending time from the corresponding textgrid file of the wav file. Is it possible to modify the pitch at two parts.
I want to modify the pitch at two different parts of a wav file. To do that , i have the information of starting time and ending time from the corresponding textgrid file of the wav file. Is it possible to modify the pitch at two parts.
You can use a
Manipulation
object to make any changes you want to the original sound's pitch.You change the pitch tier by adding points at different times with different pitch values (in Hertz), and when you do the resynthesis Praat will modify the original values so they match the ones you specified.
In your case, you can use the time values from the
TextGrid
to know when the modifiedPitchTier
points need to be added and leave the rest alone. You can also manipulate duration like this.In the example, the script changes the value of each of the points in the original pitch tier with the value of the points in the inverted order, so that the first point will have the value of the last one. The
if
block inside thefor
is one way of limiting those changes to a subset of the pitch tier, but how you do this will depend on the sort of changes you are trying to make.