dsd icon indicating copy to clipboard operation
dsd copied to clipboard

Error opening sound device when using files for input and output

Open TJNII opened this issue 5 years ago • 1 comments

Good evening:

I'm hitting the common Error, couldn't open /dev/audio issue. However, unlike the other reports I've found, I'm trying to run dsd against wav files and do not wish to use the soundcard:

$ dsd -n recordings/442.700_2020-05-27_23-50-12.wav -w out/442.700_2020-05-27_23-50-12.decoded.wav        
Digital Speech Decoder 1.7.0-dev (build:v1.6.0-91-gf175834)
mbelib version 1.3.0
Disabling audio output to soundcard.
Writing audio to file out/442.700_2020-05-27_23-50-12.decoded.wav
Error, couldn't open /dev/audio

When reading from a file (-r), writing to a file (-w), and not sending speech to the audio device (-n) I'd expect it to not need to open the sound device at all, thereby bypassing the portaudio OSS chicanery all together. Is there another flag I missed or is the audio device is needed when doing solely file IO?

TJNII avatar May 28 '20 04:05 TJNII

you probably want dsd -n -i myfile.wav -w output.wav

https://github.com/szechyjs/dsd/wiki/Operation#inputoutput-options

szechyjs avatar Oct 21 '21 17:10 szechyjs