<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi there,<div><br></div><div>I'm trying to make a playback of streamed sound data coming from a database. I could make the example included in documentation work (cat file.wav | sox -t wav - $@ -t raw -). However, I can't make it work with same sox options after having uploaded that same file into my PGSQL database and select it instead of a cat command. </div><div><br></div><div>My shell script is</div><div><br></div><div><div>#!/bin/bash</div><div><br></div><div>psql -h <HOST> -U postgres -E -t -q -d <DATABASE> -c "select <BINARY COLUM DATA> from <TABLE> " | sox -t wav - $@ -t raw -</div></div><div><br></div><div>Freeswitch gives me a "sox FAIL formats: can't open input `-': WAVE: RIFF header not found" error message.</div><div><br></div><div><br></div><div>Has anybody streamed data from database into Freeswitch?</div><div><br></div><div>Thank you.</div><div><br></div><div>Bernard</div><div> <font class="Apple-style-span" face="monospace"><span class="Apple-style-span" style="font-size: 13px; line-height: 14px; white-space: pre; "> </span></font></div><div><br></div></body></html>