Hello I have many problems with using pypar ~ pyfoal~ emphases libraries but in here I have the question for pyfoal.
I couldn't achive to make pyfoal to align with mfa (I didn't tried the other two aligners but they seem too complicated to install so.. just with mfa) instead I used mfa directly by hand and created my own aligned TextGrids and pasted this aligned text grid as pypar.Alignment object and started to try these pyfoal.interploate.... functions to obtain features and planned to fill my tables. But what I only have as far is some kind of <pypar.alignment.Alignment at 0x1db01f9ffa0> outputs.
Also I have an intresting error I will be sharing the code, error and also my text grid files' screenshot due to state myself better.Also please know I'm already appriciate all this work :)
Also I need more explanations for these parameters. as instance when you ask for text in the parameters you need textgrids, output of mfa or just the 'speech'. Also I couldn't find a way to control language(acoustic) and dict options with pyfoal.
Also I couldn't understand what those ratio's are stands for, I played with that a little but only thing I figure is when I made it too big nothing changed in output pyfoal.interpolate.phonemes(align,ratio= 1) <pypar.alignment.Alignment at 0x1db01f9ffa0>
Code :
aligns_lst = glob('alignment/aligned/*.TextGrid')
align = pypar.Alignment(aligns_lst[0])
pyfoal.interpolate.voiced(align, ratio = 1)
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[109], line 2
1 align = pypar.Alignment(aligns_lst[0])
----> 2 pyfoal.interpolate.voiced(align, ratio = 1)
File [~\anaconda3\envs\aligner\lib\site-packages\pyfoal\interpolate.py:25](http://localhost:8888/lab/tree/~/anaconda3/envs/aligner/lib/site-packages/pyfoal/interpolate.py#line=24), in voiced(alignment, ratio)
23 # Determine which phonemes to stretch
24 phonemes = alignment.phonemes()
---> 25 voicing = [is_voiced(str(phoneme)) for phoneme in phonemes]
27 # Compute the ratio of the stretch applied to voiced regions
28 duration = alignment.duration()
File [~\anaconda3\envs\aligner\lib\site-packages\pyfoal\interpolate.py:25](http://localhost:8888/lab/tree/~/anaconda3/envs/aligner/lib/site-packages/pyfoal/interpolate.py#line=24), in <listcomp>(.0)
23 # Determine which phonemes to stretch
24 phonemes = alignment.phonemes()
---> 25 voicing = [is_voiced(str(phoneme)) for phoneme in phonemes]
27 # Compute the ratio of the stretch applied to voiced regions
28 duration = alignment.duration()
File [~\anaconda3\envs\aligner\lib\site-packages\pyfoal\interpolate.py:82](http://localhost:8888/lab/tree/~/anaconda3/envs/aligner/lib/site-packages/pyfoal/interpolate.py#line=81), in is_voiced(phoneme)
80 def is_voiced(phoneme):
81 """Returns True iff the phoneme is voiced"""
---> 82 return bool(pyfoal.load.voicing()[phoneme])
AttributeError: module 'pyfoal' has no attribute 'load
---------------------------------------------------------------------------
Screen shot of txtgrid :

Hello I have many problems with using pypar ~ pyfoal~ emphases libraries but in here I have the question for pyfoal.
I couldn't achive to make pyfoal to align with mfa (I didn't tried the other two aligners but they seem too complicated to install so.. just with mfa) instead I used mfa directly by hand and created my own aligned TextGrids and pasted this aligned text grid as pypar.Alignment object and started to try these pyfoal.interploate.... functions to obtain features and planned to fill my tables. But what I only have as far is some kind of <pypar.alignment.Alignment at 0x1db01f9ffa0> outputs.
Also I have an intresting error I will be sharing the code, error and also my text grid files' screenshot due to state myself better.Also please know I'm already appriciate all this work :)
Also I need more explanations for these parameters. as instance when you ask for text in the parameters you need textgrids, output of mfa or just the 'speech'. Also I couldn't find a way to control language(acoustic) and dict options with pyfoal.
Also I couldn't understand what those ratio's are stands for, I played with that a little but only thing I figure is when I made it too big nothing changed in output
pyfoal.interpolate.phonemes(align,ratio= 1)<pypar.alignment.Alignment at 0x1db01f9ffa0>Code :
Screen shot of txtgrid :
