swipe icon indicating copy to clipboard operation
swipe copied to clipboard

Problem opening some wave files?

Open dreamk73 opened this issue 8 years ago • 3 comments

I am trying to extract F0 contours with swipe for a long list of files. When I run it on some voices, it works fine but on others I get the error below. I don't understand why it is saying to specify an input file with -i or why there is this strange symbol after the wav? I have checked file permissions and directory permissions and they are the same for the files that do work and the files that don't.

If I create a symbolic link from the swipe directory to the problem directory and run ./swipe -i wav48/sn001_sent001.wav I have no problems. Note that the original directory is a mounted drive on a linux system. But as I said, I only have problems with certain voice directories, and not others.

./swipe -i /data/user/merlin_data/voice/wav48/sn001_sent001.wav
Reading from "/data/user/merlin_data/voice/wav48/sn001_sent001.wav�" failed (try specifying an input file with -i).

Any idea what I could do to make swipe read these files without problems?

dreamk73 avatar Oct 24 '17 07:10 dreamk73

The parenthetical error statement is irrelevant here---(the normal case is this fails because it tries to read from stdin but no audio file is passed in---hence the suggestion), so ignore it.

I'd guess there's something weird with the filesystem that is not directly connected to swipe, simply because this issue hasn't been reported before?

If you're reading a bunch of files you may want to try batch mode with the -b flag and see if that happens to solve the other problem? You could also try calling it from Python in a script (see the README).

On Tue, Oct 24, 2017 at 3:31 AM, Esther Judd-Klabbers < [email protected]> wrote:

I am trying to extract F0 contours with swipe for a long list of files. When I run it on some voices, it works fine but on others I get the error below. I don't understand why it is saying to specify an input file with -i or why there is this strange symbol after the wav? I have checked file permissions and directory permissions and they are the same for the files that do work and the files that don't.

If I create a symbolic link from the swipe directory to the problem directory and run ./swipe -i wav48/sn001_sent001.wav I have no problems. Note that the original directory is a mounted drive on a linux system. But as I said, I only have problems with certain voice directories, and not others.

./swipe -i /data/user/merlin_data/voice/wav48/sn001_sent001.wav Reading from "/data/user/merlin_data/voice/wav48/sn001_sent001.wav�" failed (try specifying an input file with -i).

Any idea what I could do to make swipe read these files without problems?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kylebgorman/swipe/issues/8, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJuOdRkP6lBb5WTi37hoNRvXvNcLP4Yks5svZJlgaJpZM4QD9-B .

kylebgorman avatar Oct 24 '17 13:10 kylebgorman

I get this error when I just do it on the one file as shown in my message. I am calling it from a python script and I specify the input file with the -i option. It is so strange if it is the file system, as I have no issues using it on another file on the same file system. All waveforms have been created in the same manner and file and directory permissions are the same as well. And as I said, when I create a symbolic link to the directory and call it that way, it works as well. Very strange!

dreamk73 avatar Oct 24 '17 14:10 dreamk73

Correction, I call the command-line binary of swipe in python. I see now that I could call it directly in python. I will take a look at that option.

dreamk73 avatar Oct 24 '17 14:10 dreamk73