Generating *.aup file
Posted: 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:)
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:)