Comments (7)
from praatio.
So after I extracted out the phoneme I perform a forced aligners with the text I had. But how do we add into the tiersdict along with the entryList like the example:
['phone', 'word']
Inside the word is ['mary', 'rolled', 'the', 'barrel']
from praatio.
Specifically how do you add a new tier for example 'phone' into the textgrid along with their data and so on from the audio..
Example : ['phone', 'word', 'pitch', ...etc ]
For now I only know how to create an tier with nothing in it
Example :
phonetier = tgio.IntervalTier('phone', [ ] , 0, pairedWav=join(inputPath, fn))
The entryList stores nothing for now and I was wondering how / where to get the data to store in the entryList.
Sorry for the confusion caused.
from praatio.
from praatio.
from praatio.
Sorry, I'm trying out using sppas_util.py to do it instead. However I'm not sure if I'm doing it correctly.
My code:
import os
from os.path import join
from praatio import tgio
from praatio.applied_scripts.sppas_util import sppasPostProcess
inputgrid = join('C:/Users/Desktop/work27dec/praatIO-master/praatIO-master/examples/files','generated_textgrids','mary.TextGrid')
output = join('C:/Users/Desktop/work27dec/praatIO-master/praatIO-master/examples/files','generated_textgrids2')
sppasPostProcess(inputgrid,output)
Error:
File "C:\Users\Desktop\work27dec\praatIO-master\praatIO-master\sppas.py", line 10, in
sppasPostProcess(inputgrid,output)
File "C:\Users\Desktop\work27dec\praatIO-master\praatIO-master\praatio\applied_scripts\sppas_util.py", line 95, in sppasPostProcess
tgFNList = utils.findFiles(tgPath, filterExt=".TextGrid")
File "C:\Users\Desktop\work27dec\praatIO-master\praatIO-master\praatio\utilities\utils.py", line 247, in findFiles
fnList = os.listdir(path)
NotADirectoryError: [WinError 267] The directory name is invalid: 'C:/Users/Desktop/work27dec/praatIO-master/praatIO-master/examples/files\generated_textgrids\mary.TextGrid'
from praatio.
from praatio.
Related Issues (20)
- Montreal Forced Aligner compatability HOT 3
- openTextgrid() cannot correctly parse the file if there are '\n's within the label text of interval tiers HOT 5
- Can I fill the blanks in the tier by extending the existing intervals? HOT 21
- Textgrid validation HOT 7
- Make openTextgrid() and save() parameters manditory HOT 4
- Tier entries that have blank labels are not read HOT 6
- Issues parsing TextGrids from ELAN HOT 7
- Textgrids with non-unique tier names cannot be opened HOT 3
- PraatIO on conda-forge HOT 3
- TextGrids with a -0 xmin fail to parse HOT 3
- Validate support for Klattgrids
- Potential bug in `audio.extractSubwav` and/or `audio.openAudioFile` HOT 9
- TextGrid.tierDict can be modified, corrupting the TextGrid HOT 9
- More idiomatic json format HOT 3
- `intersection`: issue on consecutive duplicate words HOT 6
- Some API suggestions for next major release HOT 5
- Did there any incompatible upgrade in parratio==6.0.0 Textgrid' object has no attribute 'tierDict' HOT 4
- empty textgrid HOT 4
- Incorrect Error Message /praatio/data_classes/interval_tier.py line 99 HOT 2
- `pkg_resources` deprecation error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from praatio.