Windows10下运行LIUM Speaker Diarization报showName.mfcc文件未找到异常
showName.mfcc (No such file or directory) Error I’ve run into this exact file-not-found issue with LIUM on WSL/Windows 10 before—let’s break down the fixes step by step:
1. Fix Parameter Whitespace Issues
Your command has unnecessary spaces right after the equals signs in --fInputMask= and --sOutputMask=. LIUM interprets these spaces as part of the path, which throws off the tool’s ability to locate files and generate required MFCC features.
Bad:
--fInputMask= /mnt/c/Users/showName.wav --sOutputMask= /mnt/c/Users/showName.seg
Good:
--fInputMask=/mnt/c/Users/showName.wav --sOutputMask=/mnt/c/Users/showName.seg
2. Specify Full Path for Clustering Prefix
The --doCEClustering parameter expects a prefix for the MFCC and clustering files. When you just pass showName, LIUM looks for this file in your current working directory, not the directory where your audio file lives. You need to pass the full path prefix here:
Instead of:
–doCEClustering showName
Use:
--doCEClustering /mnt/c/Users/showName
3. Simplify by Working in the Correct Directory
An easier way to avoid path confusion is to first navigate to the directory containing your audio file and the LIUM jar:
cd /mnt/c/Users
Then run a simplified command (no full paths needed, since you’re already in the right directory):
java -Xmx1024m -jar LIUM_SpkDiarization-8.4.1.jar --fInputMask=showName.wav --sOutputMask=showName.seg --doCEClustering showName
4. Verify Directory Permissions
Make sure WSL has read/write access to the /mnt/c/Users directory. If you’re still having issues, run this to grant permissions:
chmod +rwx /mnt/c/Users
Why This Happens
LIUM generates temporary MFCC feature files during the diarization process. If your path parameters are malformed (spaces, incomplete paths), the tool either creates these files in the wrong place or can’t locate them when it needs to for clustering.
内容的提问来源于stack exchange,提问作者Demain 14h

