I am using this command in Python to generate label called dropout but Audacity does not generate label based on my following command but it generates label based on the last settings done on the Audacity UI.
If I set the following settings on the UI to generate label then it works fine.
I think I got it fixed, the command should be
do_command(“LabelSounds:measurement=rms post-offset=0 pre-offset=0 sil-dur=0.010 snd-dur=0.010 text=Dropout threshold=-9 type=between”)
INSTEAD OF
do_command(“LabelSounds:measurement=‘rms’ post-offset=0 pre-offset=0 sil-dur=0.010 snd-dur=0.010 text=‘Dropout’ threshold=-9 type=‘between’”)
I should not add these ’ ’ anywhere in the command