I am attempting to use the LIUM Speaker Diarization tool, which works on Java, but on Windows 10, the execution of the line :
java -Xmx1024m -jar /mnt/c/Users/LIUM_SpkDiarization-8.4.1.jar \ --fInputMask= /mnt/c/Users/showName.wav --sOutputMask= /mnt/c/Users/showName.seg –doCEClustering showName
throws the following exception :
java.io.FileNotFoundException: showName.mfcc (No such file or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at com.sun.media.codec.audio.mp3.JS_MP3FileReader.getAudioFileFormat(JS_MP3FileReader.java:82)
at javax.sound.sampled.AudioSystem.getAudioFileFormat(AudioSystem.java:1070)
at fr.lium.spkDiarization.libFeature.AudioFeatureSetFactory.getAudio(AudioFeatureSetFactory.java:162)
at fr.lium.spkDiarization.libFeature.AudioFeatureSetFactory.MakeFeature(AudioFeatureSetFactory.java:207)
at fr.lium.spkDiarization.libFeature.AudioFeatureSetFactory.MakeMFCCFeature(AudioFeatureSetFactory.java:255)
at fr.lium.spkDiarization.libFeature.AudioFeatureSet.read(AudioFeatureSet.java:898)
at fr.lium.spkDiarization.libFeature.AudioFeatureSet.setCurrentShow(AudioFeatureSet.java:1322)
at fr.lium.spkDiarization.system.Diarization.ester2Diarization(Diarization.java:719)
at fr.lium.spkDiarization.system.Diarization.run(Diarization.java:634)
I have run it on Linux as well but the same exception is thrown.
I am quite at a loss as to why it does not work. From what I understood, the program takes a .wav as an input and outputs a .seg file. Therefore, why does it search for a .mfcc file which it supposedly has to compute itself ?
Many thanks in advance.
Related
I have no experience using java, i am trying to use lingpipe on windows (on linux everything worked perfectly) with command shell commands. But keep getting an error message.
these are the commands:
cd lingpipe\lingpipe-4.1.2-website\demos\generic\bin
cmd_pos_en_general_brown.bat -inFile=C:\lingpipe\test.txt -outFile=C:\lingpipe\testout.xml
as shown in this tutorial:
http://alias-i.com/lingpipe/web/demo-pos.html on the section of Part-of-Speech Demo via Shell Command.
The error message is:
C:\lingpipe\lingpipe-4.1.2-website\demos\generic\bin>set CLASS=com.aliasi.demo.demos.PosDemo
C:\lingpipe\lingpipe-4.1.2-website\demos\generic\bin>set ARGS="com.aliasi.tokenizer.IndoEuropeanTokenizerFactory,com.aliasi.sentences.IndoEuropeanSentenceModel,/models/pos-en-general-brown.HiddenMarkovModel,250000,250000,General English"
C:\lingpipe\lingpipe-4.1.2-website\demos\generic\bin>set CMD=com.aliasi.demo.framework.DemoCommand
C:\lingpipe\lingpipe-4.1.2-website\demos\generic\bin>set CP=../../;../lingpipe-demos.jar;../../../lingpipe-4.1.2.jar;../../lib/nekohtml-1.9.14.jar;../../lib/xercesImpl-2.9.1.jar;../../lib/xml-apis-2.9.1.jar
C:\lingpipe\lingpipe-4.1.2-website\demos\generic\bin>java -cp ../../;../lingpipe-demos.jar;../../../lingpipe-4.1.2.jar;../../lib/nekohtml-1.9.14.jar;../../lib/xercesImpl-2.9.1.jar;../../lib/xml-apis-2.9.1.jar com.aliasi.demo.framework.DemoCommand -demoConstructor=com.aliasi.demo.demos.PosDemo -demoConstructorArgs="com.aliasi.tokenizer.IndoEuropeanTokenizerFactory,com.aliasi.sentences.IndoEuropeanSentenceModel,/models/pos-en-general-brown.HiddenMarkovModel,250000,250000,General English" -inFile C:\lingpipe\test.txt -outFile C:\lingpipe\testout.xml
IOException processing inFile=*HAS_PROPERTY_VALUE* outFile=*HAS_PROPERTY_VALUE*
Exception msg=java.io.FileNotFoundException: *HAS_PROPERTY_VALUE* (The filename, directory name, or volume label syntax is incorrect)
java.io.FileNotFoundException: *HAS_PROPERTY_VALUE* (The filename, directory name, or volume label syntax is incorrect)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at com.aliasi.demo.framework.DemoCommand.processFile(DemoCommand.java:107)
at com.aliasi.demo.framework.DemoCommand.run(DemoCommand.java:80)
at com.aliasi.demo.framework.DemoCommand.main(DemoCommand.java:139)
ps: The inputfile already exists, the output file is supposed to be created automatically by the command.
I am trying to configure LIUM tool for speaker diarization. This question is a follow up of UnsupportedAudioFileException in LIUM Speaker Diarization
I have tried re sampling the file using sox and ffmpeg
I am new to any sorts of programming and i have followed all steps described in LIUM quick start guide and the above link. I still get the same error. I think my input file has issues related to header as mentioned by Nikolay Shmyrev in the above link however i have no clue on how to solve it.
My code is as below:
java –jar C:\Users\Ravi\Desktop\LIUM_SpkDiarization-8.4.1.jar \ --fInputMask= C:\Users\Ravi\Desktop\converted_f2.wav--sOutputMask= C:\Users\Ravi\Desktop\converted_converted_2.seg -–help --doCEClustering
Error:
10:52.037 SEVERE AudioFeatureSetFa FileNotFoundException
java.io.FileNotFoundException:
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at com.sun.media.codec.audio.mp3.JS_MP3FileReader.getAudioFileFormat(JS_MP3FileReader.java:82)
at javax.sound.sampled.AudioSystem.getAudioFileFormat(Unknown Source)
at fr.lium.spkDiarization.libFeature.AudioFeatureSetFactory.getAudio(AudioFeatureSetFactory.java:162)
at fr.lium.spkDiarization.libFeature.AudioFeatureSetFactory.MakeFeature(AudioFeatureSetFactory.java:207)
The input file is at https://drive.google.com/file/d/0B7Fqe9EX5JbgT09BcXpSREd4em8/view?usp=sharing
Input File Name:converted_f2.wav
I have put the command and the full output of the prompt in a word document at
https://drive.google.com/file/d/0B7Fqe9EX5JbgUUl6THNCZFgxRnM/view?usp=sharing
The inpiut file has correct sampling rate and other parameters and thus i am not able to understand the cause of the error.
Thanks a lot for the help
Regards,
Ravi
File not found exception means the file is missing. Indeed you lack a space here:
--fInputMask= C:\Users\Ravi\Desktop\converted_f2.wav--sOutputMask= C:\Users\Ravi\Desktop\converted_converted_2.seg
You need a space before --sOutputMask
--fInputMask= C:\Users\Ravi\Desktop\converted_f2.wav --sOutputMask= C:\Users\Ravi\Desktop\converted_converted_2.seg
Otherwise it looks for a file called
C:\Users\Ravi\Desktop\converted_f2.wav--sOutputMask= C:\Users\Ravi\Desktop\converted_converted_2.seg which is obviously missing.
Overall, if computer says you that file is missing, it is really missing and you need to search for a reason. Most likely reason is your incorrect input.
Trying to use the python TweetNLP wrapper CMUTagger, but its throwing the following error:
java.io.FileNotFoundException: \dev\stdin (The system cannot find the path specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at cmu.arktweetnlp.util.BasicFileIO.openFileToReadUTF8(BasicFileIO.java:50)
at cmu.arktweetnlp.RunTagger.runTagger(RunTagger.java:93)
at cmu.arktweetnlp.RunTagger.main(RunTagger.java:364)
Sep 17, 2014 10:22:45 AM cmu.arktweetnlp.util.BasicFileIO openFileToReadUTF8
SEVERE: Could not open file:/dev/stdin
Reinstalled the JDK instead of the JRE only. Didn't fix a thing. Not sure what to do as i cant even locate the dev folder in the java directory... halp =(
Executes java program fine if the cmd line call without python is 'sh', 'runTagger.sh', '--output-format', 'conll', [File with tweets to tag], but i need it to tag incoming stream of tweets from python via stdin =)
EDIT found the dev/stdin in CygWin and tried adding the paths 'c:...\cygwin' and 'c:...\cygwin\dev' but again nothing happened
I was stuck on this forever as well. I found a workaround for it.
You could use the following code:
import subprocess
p = subprocess.check_output('java -XX:ParallelGCThreads=2 -Xmx500m -jar ark-tweet-nlp-0.3.2.jar examples/example_tweets.txt')
this will give you output for running the example_tweets file through the tagger.
I am having Aparapi translating Java code to OpenCL. However I wonder how I can see the generated OpenCL code. The website says "by using adding -Dcom.amd.aparapi.enableShowGeneratedOpenCL=true to your command line when you start your JVM". Being new to this technology, I am not sure how exactly you can do this? Can anyone please help by elaborating the process?
Added part:
Thank you. But what should I do in case of hadoop? I am trying to generate the OpneCL code for a hadoop program that I am running this way:
hadoop jar .java
I have tried adding -Dcom.amd.aparapi.enableShowGeneratedOpenCL=true before and after jar word, both did not work. Here is what I got.
Exception in thread "main" java.io.IOException: Error opening job jar: -Dcom.amd.aparapi.enableShowGeneratedOpenCL=true
at org.apache.hadoop.util.RunJar.main(RunJar.java:90)
Caused by: java.io.FileNotFoundException: -Dcom.amd.aparapi.enableShowGeneratedOpenCL=true (No such file or directory)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(ZipFile.java:215)
at java.util.zip.ZipFile.(ZipFile.java:145)
at java.util.jar.JarFile.(JarFile.java:153)
at java.util.jar.JarFile.(JarFile.java:90)
at org.apache.hadoop.util.RunJar.main(RunJar.java:88)
Just add the property to the command line which you use to start java.
Specifically somewhere you have a command line like this
java -classpath yourpackage.YourApp
Just add the property like this
java -Dcom.amd.aparapi.enableShowGeneratedOpenCL=true -classpath yourpackage.YourApp
I'm trying to convince Zucker Reports to display a Jasper report but am getting a Java error and I don't speak java-ese. I see that there is a file not found error, but I can't figure out which file is not found. I replaced the long classpath with <SNIP>.
error compiling report report2.jrxml - cmdline: javaw -classpath "<SNIP>"
at.go_mobile.zuckerreports.JasperCompileMain D:\Program Files\sugarcrm-5.2.0e\php\tmp\php83.tmp modules/ZuckerReports/resources/report2.jasper 2>&1
JasperBatchMain :: compiling jasper design D:\Program to Files\sugarcrm-5.2.0e\php\tmp\php83.tmp
JasperBatchMain :: java.io.FileNotFoundException: D:\Program (The system cannot find the file specified)
net.sf.jasperreports.engine.JRException: java.io.FileNotFoundException: D:\Program (The system cannot find the file specified)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:172)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:152)
at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:150)
at at.go_mobile.zuckerreports.JasperCompileMain.main(JasperCompileMain.java:17)
Caused by: java.io.FileNotFoundException: D:\Program (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(Unknown Source)
at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:167)
You have a space in your file path. Enclose it in double quotes.
Possibly in the <SNIP> part. Try placing your files outside of Program Files.
Look at this bit of the error message:
compiling jasper design D:\Program to
Files\sugarcrm-5.2.0e\php\tmp\php83.tmp
It's taken the filename with a space in and interpreted it as two separate arguments.
Either quote the filename or (possibly simpler) move everything to a directory without a space in the name.
What program did you use to generate the JasperReports file report2.jrxml? iReport? My guess is that your iReport is too new, the JasperReports engine came with ZuckerReports is quite old. Try use an older version of iReport instead.