Code Monkey home page Code Monkey logo

myprosody's Introduction

GitHub stars GitHub forks

myprosody

** The python script of myprosody revised and now is available here on "master branch" **

*** Version-10 release: two new functions were added ***

NEW VERSION: the prosodic features of speech (simultaneous speech) compared to the features of native speech ***spoken language proficiency level estimator

NOTE:

1- Both My-Voice-Analysis and Myprosody work on Python 3.7 
2- If you install My-Voice-Analysis through PyPi, please use: 
      mysp=__import__("my-voice-analysis") instead of import myspsolution as mysp
3- It it better to keep the folder names as single entities for instance "Name_Folder" or "NameFolder" without space in the dirctoy path

A Python library for measuring the acoustic features of speech (simultaneous speech, high entropy) compared to ones of native speech.

Prosody is the study of the tune and rhythm of speech and how these features contribute to meaning. Prosody is the study of those aspects of speech that typically apply to a level above that of the individual phoneme and very often to sequences of words (in prosodic phrases). Features above the level of the phoneme (or "segment") are referred to as suprasegmentals. A phonetic study of prosody is a study of the suprasegmental features of speech. At the phonetic level, prosody is characterised by:

  1. vocal pitch (fundamental frequency)
  2. acoustic intensity
  3. rhythm (phoneme and syllable duration)

MyProsody is a Python library for measuring these acoustic features of speech (simultaneous speech, high entropy) compared to ones of native speech. The acoustic features of native speech patterns have been observed and established by employing Machine Learning algorithms. An acoustic model (algorithm) breaks recorded utterances (48 kHz & 32 bit sampling rate and bit depth respectively) and detects syllable boundaries, fundamental frequency contours, and formants. Its built-in functions recognize/measures:

                     o	Average_syll_pause_duration 
                     o	No._long_pause /o	Speaking-time 
                     o	No._of_words_in_minutes
                     o	Articulation_rate
                     o	No._words_in_minutes
                     o	formants_index
                     o	f0_index ((f0 is for fundamental frequency)
                     o	f0_quantile_25_index 
                     o	f0_quantile_50_index 
                     o	f0_quantile_75_index 
                     o	f0_std 
                     o	f0_max 
                     o	f0_min 
                     o	No._detected_vowel 
                     o	perc%._correct_vowel
                     o	(f2/f1)_mean (1st and 2nd formant frequencies)
                     o	(f2/f1)_std
                     o	no._of_words
                     o	no._of_pauses
                     o	intonation_index 
                     o	(voiced_syll_count)/(no_of_pause)
                     o	TOEFL_Scale_Score 
                     o	Score_Shannon_index
                     o	speaking_rate
                     o	gender recognition
                     o	speech mood (semantic analysis)
                     o	pronunciation posterior score
                     o	articulation-rate 
                     o	speech rate 
                     o	filler words
                     o	f0 statistics
                     -------------
                     NEW
                     --------------
                     o level (CEFR level)
                     o prosody-aspects (comparison, native level)

The library was developed based upon the idea introduced by Klaus Zechner et al “Automatic scoring of non-native spontaneous speech in tests of spoken English” Speech Communicaion vol 51-2009, Nivja DeJong and Ton Wempe [1], Paul Boersma and David Weenink [2], Carlo Gussenhoven [3], S.M Witt and S.J. Young [4] , and Yannick Jadoul [5].

Peaks in intensity (dB) that are preceded and followed by dips in intensity are considered as potential syllable cores. MyProsody is unique in its aim to provide a complete quantitative and analytical way to study acoustic features of a speech. Moreover, those features could be analysed further by employing Python's functionality to provide more fascinating insights into speech patterns.

This library is for Linguists, scientists, developers, speech and language therapy clinics and researchers.

Please note that MyProsody Analysis is currently in initial state though in active development. While the amount of functionality that is currently present is not huge, more will be added over the next few months.

Installation

Myprosody can be installed like any other Python library, using (a recent version of) the Python package manager pip, on Linux, macOS, and Windows:

                                    pip install myprosody

or, to update your installed version to the latest release:

                                    pip install -u myprosody

you need also

                                    import pickle

to run those functions of "Myprosody" which predict the spoken language proficiency level of your audio files. You need the pickle library to activate the trained acoustic and language models

NOTE:

After installing Myprosody, download the folder called:

                                  myprosody

from

https://github.com/Shahabks/myprosody

and save on your computer. The folder includes the audio files folder where you will save your audio files for analysis.

Audio files must be in *.wav format, recorded at 48 kHz sample frame and 24-32 bits of resolution.

To check how the myprosody functions behave, please check

                                EXAMPLES.pdf
                                testpro.py

on

https://github.com/Shahabks/myprosody

Development

Myprosody was developed by MYOLUTIONS Lab in Japan. It is part of New Generation of Voice Recognition and Acoustic & Language modelling Project in MYSOLUTIONS Lab. That is planned to enrich the functionality of Myprosody by adding more advanced functions.

Pronunciation

My-Voice-Analysis and MYprosody repos are two capsulated libraries from one of our main projects on speech scoring. The main project (its early version) employed ASR and used the Hidden Markov Model framework to train simple Gaussian acoustic models for each phoneme for each speaker in the given available audio datasets, then calculating all the symmetric K-L divergences for each pair of models for each speaker. What you see in these repos are just an approximate of those model without paying attention to level of accuracy of each phenome rather on fluency In the project's machine learning model we considered audio files of speakers who possessed an appropriate degree of pronunciation, either in general or for a specific utterance, word or phoneme, (in effect they had been rated with expert-human graders). Here below the figure illustrates some of the factors that the expert-human grader had considered in rating as an overall score

image

S. M. Witt, 2012 “Automatic error detection in pronunciation training: Where we are and where we need to go,”

References and Acknowledgements

  1. DeJong N.H, and Ton Wempe [2009]; “Praat script to detect syllable nuclei and measure speech rate automatically”; Behavior Research Methods, 41(2).385-390.

  2. Paul Boersma and David Weenink; http://www.fon.hum.uva.nl/praat/

  3. Gussenhoven C. [2002]; “ Intonation and Interpretation: Phonetics and Phonology”; Centre for Language Studies, Univerity of Nijmegen, The Netherlands.

  4. Witt S.M and Young S.J [2000]; “Phone-level pronunciation scoring and assessment or interactive language learning”; Speech Communication, 30 (2000) 95-108.

  5. Jadoul, Y., Thompson, B., & de Boer, B. (2018). Introducing Parselmouth: A Python interface to Praat. Journal of Phonetics, 71, 1-15. https://doi.org/10.1016/j.wocn.2018.07.001 (https://parselmouth.readthedocs.io/en/latest/)

  6. "Automatic scoring of non-native spontaneous speech in tests of spoken English", Speech Communication, Volume 51, Issue 10, October 2009, Pages 883-895

  7. "A three-stage approach to the automated scoring of spontaneous spoken responses", Computer Speech & Language, Volume 25, Issue 2, April 2011, Pages 282-306

  8. "Automated Scoring of Nonnative Speech Using the SpeechRaterSM v. 5.0 Engine", ETS research report, Volume 2018, Issue 1, December 2018, Pages: 1-28

myprosody's People

Contributors

shahabks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

myprosody's Issues

"Try again the sound of the audio was not clear"

Describe the bug
Keep getting this error using my own audio files (all longer than 20s and sound clear to me) or even the sample file suun3. I also have following files in my "Test" directory.

  1. myspsolution.praat
  2. MLTRNL.praat
  3. stats.csv

To Reproduce
import myprosody as mysp
import pickle

p="suun3" # Audio File title
c="/content/drive/My Drive/Audio/Test" # Path to the Audio_File directory (Python 3.7)
mysp.myspgend(p,c)

Please help. Thanks!

No module named parselmouth.praat

Hey I tried installing both parselmouth and praat-parselmouth==0.3.3 but I am getting the error "No module named parselmouth.praat"

Please suggest how to install this module.

Awaiting reply kindoff urgent

Try again the sound of the audio was not clear

testfile : testpro.py
wav file : examle - suun3.wav

I used your example... but I have some trouble......
Try again the sound of the audio was not clear......

$ python3 testpro.py
[<parselmouth.Data object at 0x7f8c43061030>]
Try again the sound of the audio was not clear
[<parselmouth.Data object at 0x7f8c4116ad18>]
Try again the sound of the audio was not clear
[<parselmouth.Data object at 0x7f8c41172d18>]
Try again the sound of the audio was not clear
[<parselmouth.Data object at 0x7f8c05ec50a0>]
Try again the sound of the audio was not clear
[<parselmouth.Data object at 0x7f8c050321f0>]
Try again the sound of the audio was not clear
[<parselmouth.Data object at 0x7f8c0def68f0>]
Try again the sound of the audio was not clear
[<parselmouth.Data object at 0x7f8c43061030>]
Try again the sound of the audio was not clear
[<parselmouth.Data object at 0x7f8c4116ad50>]
Try again the sound of the audio was not clear
[<parselmouth.Data object at 0x7f8c41172d50>]
Try again the sound of the audio was not clear
[<parselmouth.Data object at 0x7f8c05ec50a0>]
Try again the sound of the audio was not clear
[<parselmouth.Data object at 0x7f8c050321f0>]
Try again the sound of the audio was not clear
[<parselmouth.Data object at 0x7f8c0def68f0>]
Try again the sound of the audio was not clear
[<parselmouth.Data object at 0x7f8c43061030>]
Try again the sound of the audio was not clear
[<parselmouth.Data object at 0x7f8c4116ad18>]
Try again the sound of the audio was not clear
[<parselmouth.Data object at 0x7f8c41172d18>]
Try again the sound of the audio was not clear
[<parselmouth.Data object at 0x7f8c05ec50a0>]
Try again the sound of the audio was not clear
[<parselmouth.Data object at 0x7f8c050321f0>]
Try again the sound of the audio was not clear
Try again the sound of the audio was not clear
Try again the sound of the audio was not clear

I think myprosody/dataset/essen/myspsolution.praat have some warning

<line no. 245>
int = Get number of intervals... 2
if int<2
warning$="A noisy background or unnatural-sounding speech detected. No result try again"
appendInfoLine: warning$
exitScript()
endif

int is '1'...
when I run testpro.py, myspolution.py executes run_file function.
but run_file returns warning.... so exception is enable....

How can i fix it???

Question on run_file parameters

from parselmouth.praat import call, run_file

Not sure what's going on. I tried to look up run_file from parselmouth and couldn't get much out of their documentation.

This line is used by almost every function:

run_file(sourcerun, -20, 2, 0.3, "yes",sound,path, 80, 400, 0.01, capture_output=True)

Can someone explanation to me what each of these parameters are?

Thank you!

Percentile Calculation error and calculation logic of parameters

While running of the function mysp.myprosody(p,c) in the script testpro.py, I started getting multiple doubts which I will request you to clarify. I saw that the function definiton is in myprosody.py and I have doubt in this section of code-

for i in range(25):
            sl0=dataframe[4:7:1,i+1]
            score = array[0,i]
            he=scipy.stats.percentileofscore(sl0, score, kind='strict')
            if he==0:
                he=25
                dfout = "%s:\t %f (%s)" %  (nsns[i],he,"% percentile ")
                print(dfout)
            elif he>=25 and he<=75:
                dfout = "%s:\t %f (%s)" % (nsns[i],he,"% percentile ")
                print(dfout)
            else:
                dfout = "%s:\t (%s)" % (nsns[i],":Out of Range")
                print(dfout)

Here you are taking percentile for each parameter, from stats.csv and reporting percentile using "strict" scoring. As a result percentiles can only be 0, 25, 33.3, 66.6 or out of range. What is the reasoning behind using fixed percentile values? Also if we also have min and max values (0 and 100 percentiles respectively), then why we are reporting some >75 percentiles as out of range?

Apart from this, I want to know the definition and calculating procedure for some of the features-

  • What is No._long_pause (confused as I didn't expect it to be in decimals)
  • What is formants_index ?
  • While giving percentile for parameters like No._detected_vowel, is the time of speech considered (it doesn't make without that right) ?
  • How is intonation index, TOEFL score and Shannon index calculated here? Can you explain briefly? I see it's done in the praat file but how?

Also, what are the accuracies of the models used to calculate these scores? Is this documented in some paper or report?

Try again audio was not clear #issue

I too had the same issue regarding my audio file. And I constantly get this message("Try again the sound of the audio was not clear") after testing every functions (for eg: mysp.myspsr(p,c)). Can you explain the reason why I get this issue even though the audio is in wav format and not of short duration? Can you please check my audio file, and tell if it works for you?

my-voice-analysis.zip

Originally posted by @ahalyaj in #8 (comment)

Prosodic features

Hello,
Can we get the prosody features of any Language with this library as you have not mentioned the specific language in it.
I want to compute the prosody features of the French and English Language.
And If we need to compute the prosody features of the other language how shall we do it with this library

Thank you

MLTRNL.praat line 285

Hello Shahab,

I constantly faced the error "the sound is not clear" when calling "myprosody" function, I caught the error and it mentions the line 285 of the script MLTRNL.praat which is (vectorf#= zero # (int)). The "zero" is an unknown symbol. I also changed it to 0 but it says you would need to give a vector. Can you please take a look at this line?

1. Try again the sound of the audio was not clear 2. Please update with respect to python 3.9

I tried using python 3.9; 3.8 and 3.7 to run the examples & my own files with my own code but to no avail. Every time, even though the format of the audio file is correct i.e. 48kHz with 32 bits, the output of the process is "Try again the sound of the audio was not clear".
Likewise, there is no error generated in the case of a non-existent directory indication.

import myprosody as mysp
import pickle
import shutil
import pyaudio
import wave

p = "suun3"
c = r"/Users/gk/Desktop/pythonProject/myprosody/dataset/audioFiles"


def analyse_tone():
    mysp.mysptotal(p, c)
    mysp.myspgend(p, c)

The output in both cases, if the dir name is right or wrong, is "Try again the sound of the audio was not clear"

  • python 3.9
  • macOS Big Sur 11.2.3

mysplev doesn't work

I converted mp3 to wav files 48k frame rate
Here is converter code :
from pydub import AudioSegment
AudioSegment.converter = r"C:\ffmpeg\bin\ffmpeg.exe"
import os
lst=os.listdir("mp3")
for f in lst:
try:
src=os.path.abspath('mp3\'+str(f))
dest=os.path.abspath('wav')+'\'+str(f.split('.')[0])+'.wav'
sound = AudioSegment.from_mp3(src)
sound=sound.set_frame_rate(48000)
sound=sound.set_sample_width(4)
sound.export(dest, format="wav")
print(f,"is converted")
except:
print(f,"is not converted")

Then I use myprosody to analyze wav files
Here is the code:

import myprosody as mysp
import pickle
import os
lst=os.listdir("wav")
for f in lst:
if (f.endswith("wav")):
print(f)
try:
p=str(f).split('.')[0]
c=r"myprosody"
mysp.myspgend(p,c)
mysp.myspsyl(p,c)
mysp.mysppaus(p,c)
mysp.myspsr(p,c)
mysp.myspatc(p,c)
mysp.myspst(p,c)
mysp.myspod(p,c)
mysp.myspbala(p,c)
mysp.myspf0mean(p,c)
mysp.myspf0sd(p,c)
mysp.myspf0med(p,c)
mysp.myspf0min(p,c)
mysp.myspf0max(p,c)
mysp.myspf0q25(p,c)
mysp.myspf0q75(p,c)
mysp.mysppron(p,c)
mysp.myprosody(p,c)
mysp.mysplev(p,c)
except Exception as e:
print(str(e))

The error is:

  • some values in myprosody function raises out of range value

  • mysplev doesn't work
    sometimes it raises error name "pickle" is not defined even I import pickle
    sometimes its raise error symbol misplaced or unknownsymbol

for example:
« appendInfoLine:1.3742569444444444,tab$,'
Script line 866 not performed or completed:
« appendInfoLine:'avepauseduratin',tab$,'avelongpause',tab$,'speakingtot:2',tab$,'avenumberofwords',tab$,'articulationrate',tab$,'inpro',tab$,'f1norm',tab$,'mr',tab$,'q25',tab$,'q50',tab$,'q75', tab$, 'std',tab$,'fmax',tab$,'fmin',tab$,'vowelinx1',tab$,'vowelinx2',tab$,'formantmean',tab$,'formantstd',tab$,'nuofwrds:0',tab$,'npause',tab$,'ins',tab$,'fillerratio',tab$,'xx',tab$,xxx$,tab$,'totsco',tab$,xxban$,tab$,'speakingrate' »

second: can you return values from functions, not just printing it while runtime?

OS: Windows 10
python 3.7 (32 bit)

Real-time audio features

I would like to ask if there is any way to make the detections run in realtime instead of recorded files?

And if you would have any idea on how to chunk the audio for the detections ?

Sample rate

Is it possible to adjust the code to input files at a 16kHz sample rate, or does this include trained models that require 48kHz?

Create a simple test file

Hi @Shahabks ,

Thanks for this project that seems to be exactly what I am looking for!
However, some things are not working like the mysplev function because of missing

import pickle

which means it could not run anytime.

Moreover, I fail to use the project with the sample file given in the my prosody folder or with any other file I recorded. It always fails at some point.

Therefore I have two requests :

  • Could you please provide a test script with all or part of the features?
  • Could you write clearer error logs when the program fails?

Thank you very much !

Antonin

Can't read audio files

Hello,
I have a problem I can't read any audio files. I tried to print in mysptotal some strings to understand where is the problem. From the try the function passes directly on the expect without executing the inside of the try.
I think it's because I can't import parselmouth, but I don't know why.

Do you have any ideas on how to solve the problem?

Thank you!

Value of the return of any function is NoneType

I tried to extract the output of any of the functions, and i can see that there are return z3, z2 and so on in the source code.
But whenever i try to do
value = mysp.myspgend
i can see that its printed but i cannot use it.

Error while executing


PraatError Traceback (most recent call last)
in
----> 1 mysp.myspgend(p,c)

c:\users\apoochelvan\audio\lib\site-packages\myprosody_init_.py in myspgend(m, p)
245 sourcerun=p+"/"+"dataset"+"/"+"essen"+"/"+"myspsolution.praat"
246 path=p+"/"+"dataset"+"/"+"audioFiles"+"/"
--> 247 objects= run_file(sourcerun, -20, 2, 0.3, "yes",sound,path, 80, 400, 0.01, capture_output=True)
248 print (objects[0]) # This will print the info from the sound object, and objects[0] is a parselmouth.Sound object
249 z1=str( objects[1]) # This will print the info from the textgrid object, and objects[1] is a parselmouth.Data object with a TextGrid inside

PraatError: Unknown variable:
« (ln(f_one
Script line 295 not performed or completed:
« lnf0 = (ln(f_one)-5.65)/0.31 »
Script not completed.

Returns 'NoneType'

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!

problems with mysplev

[491]filename=p+"/"+"dataset"+"/"+"essen"+"/"+"CART_model.sav"
[492] model = pickle.load(open(filename, 'rb'))
[493]predictions = model.predict(x)
[494]print("58% accuracy ",predictions)

ModuleNotFoundError: No module named 'sklearn.tree.tree'

I constantly get these kind of errors for mysplev, if I comment this part out I get a similar error for KNN_model.sav and so on. Also where can I find an explanation what this function calculates. It are some kind of predictions but predictions of what? Also can someone explain what the pronunciation posteriory probabality score percentage is and how it is calculated? Please in easy terms as I am not a linguist.

Question about native speakers in myprosody function

Hello. Thank you for this code.

We would like to use some of these functions in an upcoming analysis for dementia research. In order to do that, I am searching for some background information about the native speakers used for comparing to the speech samples. The file, stats.csv, seems to show there are 697 native speakers used. Is that a correct assumption? Also, would you happen to know the distribution of sex, age range, and countries of origin for these individuals?

If this information if available anywhere, please let me know. Thank you for your help.

function run_file

Hi! Please add a file which has the function definition of run_file or explain it using comments. Thank you.

mysp.myprosody(p,c) giving parselmouth.PraatError: Stray text after 'else'. error

Hello,

I could all functions up to mysp.myprosody(p,c) and this throws an error which is related to PRAAT file.

parselmouth.PraatError: Stray text after 'else'.
Script line 332 not performed or completed:
« else vowel1=vowel1+0 »
Script not completed.

mysp.myprosody(p,c)
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\bbrij\AppData\Local\Programs\Python\Python39\lib\site-packages\myprosody_init_.py", line 369, in myprosody
objects= run_file(sourcerun, -20, 2, 0.3, "yes",sound,path, 80, 400, 0.01, capture_output=True)
parselmouth.PraatError: Stray text after 'else'.
Script line 332 not performed or completed:
« else vowel1=vowel1+0 »
Script not completed.

I could run previous functions successfully.

mysp.myspsyl(p,c)
number_ of_syllables= 121
mysp.mysppron(p,c)
Pronunciation_posteriori_probability_score_percentage= :94.97

Here is the screenshot if it helps:
image

viseme generation

hi @Shahabks thank you for sharing your work. I am trying to generate viseme from audio such as

AAA', 'Eh', 'AHH', 'OHH', 'UUU', 'IEE', 'RRR', 'WWW', 'SSS', 'FFF', 'TTH', 'MBP', 'SSH', 'Schwa', 'GK', 'LNTD

can you please guide me how can achieve this. and in what direction i should look into it. maybe you can share some related work which i can extend. i will really appreciate your help.

mysppron value is always in between 6.90 - 7.20

when im using mysppron the value is always in between 6.90 - 7.20 it doesnt go up or go down with the same/different words spoken.

im using audacity to record my voice as WAV file
24/32 bits (same result)
48000/41000hz (same result)

Expected behavior
percentage value might go up higher than single digit numbers

Screenshots
image_2024-08-01_145319160

Fillers

Hi,

I am looking for filler words and filled pauses, like it seems to be mentioned in the documentation. However, when I run the script, I have the impression that the fillers are actually the moments where people speak.

Here is a simple view of the outputed textgrid

class = "IntervalTier"
name = "silences"
xmin = 0
xmax = 257.9040362811791
intervals: size = 82
intervals [1]:
xmin = 0
xmax = 21.536018140589544
text = "sounding"
intervals [2]:
xmin = 21.536018140589544
xmax = 22.048018140589544
text = "silent"
intervals [3]:
xmin = 22.048018140589544
xmax = 30.320018140589543
text = "sounding"
intervals [4]:
xmin = 30.320018140589543
xmax = 30.672018140589543
text = "silent"

Am I not understanding something?

Thanks for your help!

example audio doesnt work or is missing

Describe the bug

EXAMPLE.pdf refers to a "Walker" audio file, but this is not present in the project.
There is an audio file "suun3.wav" in myprosody/myprosody/dataset/audioFiles/, the directory expected by myspgend(...) and other demo functions called in testpro.py.
Running testpro.py with this path produces many errors saying
Try again the sound of the audio was not clear, and the final result printout lists the
25% percentile for every category. Is this expected?

This is python 3.6.3 on MacOSX 10.14.5

Definition of Fillers and Pauses

I couldn't find a specific definition for the fillers and pauses parameter in the pipeline or in the docs. Can anyone please explain how this feature is calculated/derived?
Thanks!

Can't save the results of each function into a variable in python: returns None

I wish to save the result of each function into a new variable in python but the functions returns only a print and None object.
I cannot save it into a new variable in my code script.

For example I used the mysp.mysppaus() and the return is:
[]
number_of_pauses= 73

I would like to save it into a variable or get it into a dictionary with key = number_of_pauses and value = 73.

I am using python 3.7.4 on windows.

Thanks.

Number of Pauses in the praat file

Hello,
I just wanted to know how detecting the number of pauses works in myspsolution.praat? As I read the file I found that the "npause" variable was considered as the number of "sounding" rows instead of "silent". Could you please explain why it counts the number of pauses and fillers?
Thanks,

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.