Shahabks / myprosody

A Python library for measuring the acoustic features of speech (simultaneous speech, high entropy) compared to ones of native speech.
https://shahabks.github.io/myprosody/
MIT License
233 stars 63 forks source link

Returns 'NoneType' #29

Closed suhani-kashyap closed 2 years ago

suhani-kashyap commented 2 years ago

Hi, I'm a little new to this but I noticed that when I try to use myprosody, it returns a NoneType Object. What should I do if I want the number, for example number of pauses: 16, how do I get hold of the 16 in a new variable.

import myprosody as mysp p = r"sample_audio" c = r"/User/Suhani/Desktop/myprosody/myprosody" pauses = myst.mysppaus(p,c)

When I try type(pauses)

it returns NoneType. I want to be able to use the "number of pauses" in a variable per se, store it in a list.

EDIT: (august 19 2022): I also tried to use my-voice-analysis and there I see the return statements have been written as such "return;" which I understand will return NoneType. But in the myprosody functions, it says return z3 where z3 is a variable holding an integer value. Therefore, I don't understand why myprosody would return a None object

Any help would be appreciated. Thanks!

suhani-kashyap commented 2 years ago

I see that there already an issue answering my question!