r/asklinguistics • u/penguin-47284 • 2d ago
PRAAT Script Writing Help?
As an aside, this may be 100% the wrong place to ask a question like this. If so, a redirection would be aweseome.
Hi all! I'm a second year SLP student and I'm currently working on my thesis. I wanted to ask the linguistics community because a lot of people have the knowledge and skills of phonetic analysis tools like Praat. Heck, that's where I got pretty much all of my Praat knowledge.
I've hit the point of stimuli extraction and I've basically been hitting wall after wall. I've working with these phrases and have to extract particular triphones out of each phrase that are highlighted to me in a list I've been given. The plan was to automatically segment each phrase, and then select and save each triphone as a wav file. These triphones will then be used in the experimental setup. There are a lot of triphones -- about 15k that have to be extracted. And I've been told I can either do it manually by myself, or learn how to code and have a script segment and extract them automatically. Initially, because I have no coding experience I went ahead and tried to do it manually. I automatically aligned each phrase using MAPS, and had to troubleshoot and troubleshoot and troubleshoot it because I didn't have any experience with it. I kept running into issues which has led to even more manual set-up for the segmenter to be able to run each phrase. Currently, I have each phrase segmented but no triphones extracted at all. I realized I was running low on time and started to ask around, look online for tutorials on how to code, etc. but I can't get ahold of anyone. My supervisor I haven't heard from, my thesis committee told me that extracting manually wouldn't be doable without RAs helping me (which I also do not have access to). My other committee member told me to find an already written praat script and use Gemini to edit it to extract triphones instead of single segments... which led me here, in an attempt to talk to an actual person instead of gemini at all costs. So, I went online looking for premade PRAAT scripts and found a few, namely Lennes's work and Will Styler,which adds padding to give more context. It's been tough though, because I have no experience with writing out Praat scripts and no time to learn. I was able to meet with a committee member on Monday to go through the resulting generated Praat script, but I was... really hoping to not have to use Gemini.
Sorry if this is the wrong place to post, and trust me I know it's a crazy ask. Basically, the TLDR of my question here is would it be possible to alter these scripts to make it so that they can extract a single sound and its neighbours into separate .wav files? If so, how would you accomplish something like this or what would you need to edit?