Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

A file has gone missing from long-text-aligner #5

Open
sethwoodworth opened this issue Feb 14, 2013 · 2 comments
Open

A file has gone missing from long-text-aligner #5

sethwoodworth opened this issue Feb 14, 2013 · 2 comments

Comments

@sethwoodworth
Copy link

I know that long-text-aligner isn't really your repo, but I thought I would mention the automatic build script pulls the svn repo correctly, but a file required in the build script seems to have been removed: /resource/Austen/persuasion_chapter20.txt. And running align.py fails :-( I tried paging back through the svn history to find when this file was removed, but I couldn't find it.

I am only letting you know in case this is useful to you. No worries if you don't have time to respond or support. Your code is going to be _ SUPERBLY_ useful to me. I am also going to check out @johndyer's karaoke repo.

$ python align.py Gen 1

Running ant
Buildfile: /home/seth/code/esv-text-audio-aligner/long-audio-aligner/build.xml

compile:

run:
     [java] Exception in thread "main" java.io.FileNotFoundException: ./resource/transcription/Austen/persuasion_chapter20.txt (No such file or directory)
     [java]     at java.io.FileInputStream.open(Native Method)
     [java]     at java.io.FileInputStream.<init>(FileInputStream.java:138)
     [java]     at java.io.FileInputStream.<init>(FileInputStream.java:97)
     [java]     at java.io.FileReader.<init>(FileReader.java:58)
     [java]     at edu.cmu.sphinx.demo.aligner.Aligner.readTranscription(Aligner.java:248)
     [java]     at edu.cmu.sphinx.demo.aligner.Aligner.<init>(Aligner.java:98)
     [java]     at edu.cmu.sphinx.demo.aligner.Aligner.<init>(Aligner.java:80)
     [java]     at edu.cmu.sphinx.demo.aligner.Aligner.<init>(Aligner.java:73)
     [java]     at edu.cmu.sphinx.demo.aligner.Aligner.<init>(Aligner.java:66)
     [java]     at edu.cmu.sphinx.demo.aligner.AlignerDemo.main(AlignerDemo.java:36)
     [java] Java Result: 1

all:

BUILD SUCCESSFUL
Total time: 1 second
########################
Genesis (Gen)
########################
Gen 1
Skipping MP3 (already-fetched)
Generating WAV file from MP3
Fetching verseless text
Fetching versed text
Fetching HTML
Aligning text
Exception in thread "main" java.io.FileNotFoundException: ./resource/transcription/Austen/persuasion_chapter20.txt (No such file or directory)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:138)
        at java.io.FileInputStream.<init>(FileInputStream.java:97)
        at java.io.FileReader.<init>(FileReader.java:58)
        at edu.cmu.sphinx.demo.aligner.Aligner.readTranscription(Aligner.java:248)
        at edu.cmu.sphinx.demo.aligner.Aligner.<init>(Aligner.java:98)
        at edu.cmu.sphinx.demo.aligner.Aligner.<init>(Aligner.java:80)
        at edu.cmu.sphinx.demo.aligner.Aligner.<init>(Aligner.java:73)
        at edu.cmu.sphinx.demo.aligner.Aligner.<init>(Aligner.java:66)
        at edu.cmu.sphinx.demo.aligner.AlignerDemo.main(AlignerDemo.java:36)
Exception: fail (haz Java?)
@westonruter
Copy link
Owner

Thanks for the heads up! I've been meaning to look at this project again and see if the long-text-aligner dependency has been developed further to improve the quality of the output. Obviously the answer is no if it breaks entirely 😄 Unfortunately I don't have time now to look at investigating the problem. Pull requests are welcome!

@jgunther
Copy link

Hi. To resolve this issue, change line 74 to from:

retcode = subprocess.call(['ant'])

to:

retcode = subprocess.call(['ant','compile'])

I hope this helps.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants