I am trying to view the spectral slice of a point using the
Praat Script. I have successfully generated the slice and moved the cursor to the required point but I don't know how to get the energy value at that point.
I have moved to the frequency point
3000 but I want to get its y-axis value (plotted energy value in dB).
Code Till Now:
filePath$ = dirPath$+"/"+fileName$+".wav"; sound = Read from file... 'filePath$' selectObject: sound Edit editor: sound Move cursor to: number(time_of_slice$) View spectral slice Close slice$ = "Spectrum " + fileName$ + "_" + time_of_slice$ selectObject: slice$ editor: slice$ Move cursor to: number(frequency$) endeditor
Someone please guide me in this regard. Any kind of help will be highly appreciated.