shime / play-sound

Play sounds by shelling out to one of the available audio players.
MIT License
208 stars 31 forks source link

Last second of output is cut off using 'play' as player #36

Open ZTiKnl opened 5 years ago

ZTiKnl commented 5 years ago

On Raspberry Pi 3B, using 'play' as player (which play-sound defaulted to in my case), the last second of audio output is cut off.

A .wav file saying 'four thousand' will sound like 'four thousa'

Setting {'player: 'play'} in the options has the same effect. Playing the sound through play manually in the CLI (without args, just 'play output.wav') gives full audio output.

Switching to aplay (alsa-utils) resolves the issue, which was my prefered player anyway, so to me it's not really an issue... Others might disagree :x

I can easily switch back and test more, report output or pass back more information about my setup.