lagmoellertim/unsilence

No directory found [.tmp]

UnpredictablePrashant opened this issue · 4 comments

I installed the unsilence on both my windows and my Linux machine and in both cases, I am getting the error that a file is not found.

Complete error:

┌──(kali㉿kali)-[~/Desktop]
└─$ unsilence sample1.wav sampout.wav
Calculating Intervals... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00

┏━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┓
┃ Type     ┃ Before          ┃ After           ┃ Difference        ┃
┡━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━┩
│ Combined │ 0:00:32 (100%)  │ 0:00:22 (68.4%) │ -0:00:10 (-31.6%) │
│ Audible  │ 0:00:20 (62.0%) │ 0:00:20 (62.0%) │ 0:00:00 (0.0%)    │
│ Silent   │ 0:00:12 (38.0%) │ 0:00:02 (6.3%)  │ -0:00:10 (-31.6%) │
└──────────┴─────────────────┴─────────────────┴───────────────────┘

[?] Continue with these options? (Y/n) Y
Rendering Intervals... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00  
Combining Intervals... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━   0% -:--:--  
FileNotFoundError: [Errno 2] No such file or directory: '/home/kali/Desktop/.tmp/9381a093-1ede-4d5f-babc-6d97cafdd5dc/out_final.wav' -> '/home/kali/Desktop/sampout.wav'

During handling of the above exception, another exception occurred:

FileNotFoundError: [Errno 2] No such file or directory: '/home/kali/Desktop/.tmp/9381a093-1ede-4d5f-babc-6d97cafdd5dc/out_final.wav'

The command executed on windows and linux are:

unsilence sample.wav sampleout.wav

For installation, I tried with the pip installation and as well as installation from the source.

OS: Windows 10 and Kali Linux

I've encountered this same error myself. It appears to happen only when you give it an audio file, that is, no video. Try passing the -ao / --audio-only flag in, it should work then!

Since this seems to be working when applying the flag, I will close this issue

Mte90 commented

I got that error now, maybe add autodetection if the input is an audio file will simplify.

I added that to the roadmap