-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't open input #1
Comments
Try installing SoX with all the supported formats. My guess is this is happening because SoX doesn't ship with MP3 support by default. |
Hi @alexpgates Software packages installed as recommended. I've never worked with sox, so have no clue (yet) what the commands are trying to do, but maybe something in the command line? pi@mockingbird ~ $ sudo apt-get install sox libsox-fmt-all |
@RenierD Double check the name of your directory. The script is looking in If that doesn't seem to work, let me know which version of Raspbian you are using so I can poke around. |
Triple checked directory structures. Play commands work separately, but not the combined command. The loop also works with individual play commands. Checked that the mp3s wasn't corrupt and tried removing the dashes in my filenames (I still use the original ones - after I uploaded to Instructables the filenames were changed to the ones this script use). The commands you used for SoX, are they not maybe pre-configured? Does SoX work out-of-the-box after installation? I'm using Raspbian Wheezy. |
SoX seemed to work out of the box for me. Does something like this work for you in a new file? This should make it chime 5 times.
|
@alexpgates thank you for your patience so far. Still no 'luck'. (Just ignore my directory structure and names - they are the original ones.) Tried with and w/out sudo.
|
@RenierD No problem at all! I'm still learning things here. Let's try this all on one line. Does this work when executed right from the command line?
|
Hi @alexpgates. Sorry for the delay. I tried simplifying the commands. Each time I get a different error. The error I get for using the one-liner as above: sox FAIL formats: can't open input `-': can't find sox file format identifier sox FAIL formats: can't determine type of `-' sox FAIL formats: can't determine type of `-' play WARN alsa: can't encode 0-bit Unknown or not applicable play FAIL formats: can't determine type of `-' It seems like there is something wrong with the command line (and therefore sox is trying to play the wrong path. I replaced the '-' with -t, but then I get: sox FAIL formats: no handler for given file type `-m' sox FAIL formats: no handler for given file type `-m' sox FAIL formats: no handler for given file type `-m' play WARN alsa: can't encode 0-bit Unknown or not applicable play FAIL formats: no handler for given file type `-m' |
Not sure if this is the issue, but if I used "pi-chime" for the program directory, and adjusted the script with the new directory, the chime did not work. If I use "chime" for the directory, it works correctly. I believe the "-" in the directory name causes the malfunction. |
Tried @kc0qnd 's solution. I get the same error as above. Tried searching the errors, but nothing specific. One clue was using 'the wrong' audio device settings and another was not having access to the file(s). The files does hover play without sox remixing them. My next step is to dig into the default audio device settings. Will give feedback as soon as I have. Guidance/suggestions will still be appreciated. |
sox FAIL formats: can't open input
-': can't find sox file format identifier play WARN alsa: can't encode 0-bit Unknown or not applicable sox FAIL formats: can't determine type of
-'sox FAIL formats: can't determine type of
-' sox FAIL formats: can't determine type of
-'sox FAIL formats: can't determine type of
-' play FAIL formats: can't determine type of
-'The text was updated successfully, but these errors were encountered: