Giter Site home page Giter Site logo

Comments (7)

timmahrt avatar timmahrt commented on July 28, 2024

from praatio.

jiunn95 avatar jiunn95 commented on July 28, 2024

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.

jiunn95 avatar jiunn95 commented on July 28, 2024

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.

timmahrt avatar timmahrt commented on July 28, 2024

from praatio.

timmahrt avatar timmahrt commented on July 28, 2024

from praatio.

jiunn95 avatar jiunn95 commented on July 28, 2024

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.

timmahrt avatar timmahrt commented on July 28, 2024

from praatio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.