Generating *.aup file

This section is now closed.
Forum rules
Audacity 1.2.x is now obsolete. Please use the current Audacity 2.1.x version.
Locked
fabijand
Posts: 2
Joined: Tue Oct 16, 2007 7:11 am
Operating System: Please select

Generating *.aup file

Post by fabijand » Tue Oct 16, 2007 7:36 am

Hi, audacity-heads!

Problem:
After voice recognition is done I need to launch audacity from bash script and it should contain
(1) wav_file
(2) labeling_file0 (true transcription)
(3) labeling_file1 (estimate transcription)

My "solution":
I have opened wav_file, imported label1 and label2. Saved it as project (*.aup).
From that sample project and aup DTD http://audacityteam.org/xml/audacityproject-1.3.0.dtd....
I had no problem with creating a project which contains two labeling sections
<labeltrack name="Label Track" numlabels="323">
<label t="0.00000000" t1="0.00000000" title="Bla"/>
.......
<label t="330.01300000" t1="330.01300000" title="Bla"/>
</labeltrack>

But problem comes when I need to write part of aup xml file which needs to describe wav file that should be loaded.

Does any know how should I generate that part of xml code or is there any other easier way to start audacity with that three files opened.

Tnx:)

kozikowski
Forum Staff
Posts: 69374
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: Generating *.aup file

Post by kozikowski » Tue Oct 16, 2007 11:02 pm

My neck hurts. I think I have whiplash from sudden acceleration change. Most people want to know how to change the volume of a song.

Anyway, I would create a roughly similar show to the one you want, save the project and cut and paste the code.

Koz

fabijand
Posts: 2
Joined: Tue Oct 16, 2007 7:11 am
Operating System: Please select

Re: Generating *.aup file

Post by fabijand » Wed Oct 17, 2007 5:49 pm

Tnx for comments.

I have downloaded source and added support for loading multiple trancription files from command line.

./audacity --wav=<wav_file> --trans=1.lab --trans=2.lab etc...

kozikowski
Forum Staff
Posts: 69374
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: Generating *.aup file

Post by kozikowski » Thu Oct 18, 2007 7:12 pm

Are you in contact with the programmers? I think some of them hang out here:

http://audacityteam.org/forum/viewforum.php?f=20

Koz

Locked