Play and pause audacity automatically from a script

Help for Audacity on Windows.
Forum rules
ImageThis forum is for Audacity on Windows.
Please state which version of Windows you are using,
and the exact three-section version number of Audacity from "Help menu > About Audacity".


Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Post Reply
1045
Posts: 6
Joined: Tue Dec 19, 2017 6:28 am
Operating System: Windows 10

Play and pause audacity automatically from a script

Post by 1045 » Tue Dec 19, 2017 6:33 am

Hi
is it possible to pause and play the sound file from audacity using script?
please help me

Thanks

steve
Site Admin
Posts: 81653
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Play and pause audacity automatically from a script

Post by steve » Tue Dec 19, 2017 8:37 am

Audacity does not "directly" support scripting, but there may be ways to accomplish what you want to do. What exactly do you want to do (including "why")?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

1045
Posts: 6
Joined: Tue Dec 19, 2017 6:28 am
Operating System: Windows 10

Re: Play and pause audacity automatically from a script

Post by 1045 » Tue Dec 19, 2017 10:41 am

Hi,
Thank you for your response.
i just wanted to play a series of utterances with different gains for thousands of times. i need to wait for some time after each of the utterance. Here the waiting time is dynamic. so i need to pause and play the audacity project file. In pause time i need to record and pass the uttered signal through the network, so that i can get the real time speech data with different environment noise.
Now i am doing it manually by pressing Pause(P) shortcut key from key board. This is boring and wasting lot of time.
i have tried to use the scripting to do the same with the help of manual at "https://manual.audacityteam.org/man/scripting.html", but i am failed to load the scripting module.
Please help me

steve
Site Admin
Posts: 81653
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Play and pause audacity automatically from a script

Post by steve » Tue Dec 19, 2017 2:15 pm

1045 wrote:Here the waiting time is dynamic.
What does that mean?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

1045
Posts: 6
Joined: Tue Dec 19, 2017 6:28 am
Operating System: Windows 10

Re: Play and pause audacity automatically from a script

Post by 1045 » Wed Dec 20, 2017 5:09 am

i am simulating the clean speech to get the real time speech data with different noises and different gains. I am going to use this data for ASR system training.

Thanks

Post Reply