LabelSound script generates label based on values set via GUI but not script.

Hello Audacity Community,

This is my first ever post here.

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.

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’”)

Which version of Audacity and where did you get it from?

Audacity version is 3.2.1 and installed using this URL https://ubuntuhandbook.org/index.php/2021/03/install-audacity-3-0-0-ubuntu-20-04-flatpak/

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