Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 03:07
    hokiedsp commented #46
  • 01:47
    hokiedsp opened #46
  • Feb 24 20:41
    YannickJadoul synchronize #43
  • Feb 24 20:16
    YannickJadoul synchronize #43
  • Feb 24 20:15
    YannickJadoul synchronize #43
  • Feb 22 21:11
    hokiedsp synchronize #44
  • Feb 22 20:39
    hokiedsp synchronize #44
  • Feb 22 15:40
    hokiedsp synchronize #44
  • Feb 21 22:18
    hokiedsp synchronize #44
  • Feb 21 20:53
    hokiedsp synchronize #44
  • Feb 21 19:57
    hokiedsp synchronize #43
  • Feb 21 19:46
    hokiedsp edited #43
  • Feb 21 19:46
    hokiedsp edited #43
  • Feb 21 19:46
    hokiedsp edited #43
  • Feb 21 19:46
    hokiedsp edited #43
  • Feb 21 19:46
    hokiedsp edited #43
  • Feb 21 05:01
    hokiedsp synchronize #44
  • Feb 21 04:58
    hokiedsp synchronize #44
  • Feb 21 04:37
    hokiedsp synchronize #43
  • Feb 21 03:01
    hokiedsp synchronize #43
Yannick Jadoul
@YannickJadoul
Yeah, exactly

Alternatively, Praat can interpolate, if you use Pitch.get_value_at_time

I answered that

Murat Menteşe
@MuratMe58154955_twitter

Time(seconds) Pitch(Hz)
0.1 100
0.2 110
0.3 105
0.4 120
0.5 130

Is it possible to get an array like this

Ohhh ok I now get it
Yannick Jadoul
@YannickJadoul
No worries about your English; that's more than good enough :-)
Murat Menteşe
@MuratMe58154955_twitter
Haha thanks:))
Yannick Jadoul
@YannickJadoul
The other thing you can try to do is set the time step correctly
Here are the arguments you can pass to Praat
Murat Menteşe
@MuratMe58154955_twitter
Thank you very much!!
Yannick Jadoul
@YannickJadoul
No problem! Good luck!
Murat Menteşe
@MuratMe58154955_twitter
Hello again, 2 last questions! How to get the time when there is actually sound in the file and when it ends?
Yannick Jadoul
@YannickJadoul
Euhm, that depends on you you define "actually sound"
Murat Menteşe
@MuratMe58154955_twitter
when there is no silence?:P
Yannick Jadoul
@YannickJadoul
But what's "silence"?
Murat Menteşe
@MuratMe58154955_twitter
hahaha
Yannick Jadoul
@YannickJadoul
Just low intensity?
Or all 0s?
Audio processing is messy
Murat Menteşe
@MuratMe58154955_twitter
ok I have a different idea.
Murat Menteşe
@MuratMe58154955_twitter

Audio processing is messy

Yeah I should've listened to my mentorç

Yannick Jadoul
@YannickJadoul
Maybe that helps?
Murat Menteşe
@MuratMe58154955_twitter
How to get the length of the file
Yannick Jadoul
@YannickJadoul
In ... samples or in time?
Murat Menteşe
@MuratMe58154955_twitter
in time
Yannick Jadoul
@YannickJadoul
Sound.duration
Murat Menteşe
@MuratMe58154955_twitter
ok thanks
gmagistr
@gmagistr

Hello, I have written a script to get pitch values for multiple recordings at the same time points.

 pitchObject = call(sound, "To Pitch", 0.0, 25, 350) # we create the pitch object that we will query
    pitch1 = call(pitchObject, "Get value at time", 0.1, "Hertz", "linear")

But sometimes there are holes in the pitch track and the program reports "nan". Is there a command in the call to get the average pitch/nearest pitch value?

Yannick Jadoul
@YannickJadoul
@gmagistr Hmmm, not sure. The thing is that it's perfectly possible to have unvoiced fragments, ofc
nan really just means "unvoiced", I think
Any idea what you would want/do in Praat itself? Does Praat have a way of going you that?
gmagistr
@gmagistr
Thanks for replying! I was thinking about getting value in frame, instead!
Yannick Jadoul
@YannickJadoul
What do you mean? :-)
gmagistr
@gmagistr
so that if pitch is missing for some reason (unvoiced section) at a specific point, I could get the value median value of a more extended time domain which includes invoicing and the tracked pitch points
*I could get the mean value
Yannick Jadoul
@YannickJadoul
Right
I'm not sure if there's something built-in for that in Praat/Parselmouth, though. You might have to roll your own thing on top of this
call(pitchObject, "Get mean at time", 0.05, 0.15, "Hertz") or so
And you can use Python's math.isnan(pitch1) to check if you got a valid value?
gmagistr
@gmagistr
Ah yes, perfect! I will try and get back
Uhm, okay! It can be somehow cumbersome, but maybe I would need to write an if-cycle. If it returns nan, it would try adding some bit to the time parameter
or better while :)
Yannick Jadoul
@YannickJadoul
Yeah, I'm not really sure what else to advise, though :-/
gmagistr
@gmagistr
I will try with these strategies, thanks :)
Yannick Jadoul
@YannickJadoul
To some degree, if Praat says it's unvoiced, I'd say you shouldn't really be forcibly getting a pitch, because there's probably no pitch to be found. But I can see missing values are annoying :-)
No problem. Do get back if you have more questions!
gmagistr
@gmagistr
Yes, they are annoying indeed! The fact is that I have several speakers saying the same sentence, so it can be that I find unvoiced consonant in different time points :)
But thanks for your script and support :)
Yannick Jadoul
@YannickJadoul
Right. Thanks :-) Good luck!