How can I get any standard audio programs (eg, 'espeak') to route output through the GPIO pins - so that I can use a Piezo Transducer (not a buzzer) attached my GPIO to hear sounds ?
I can do this 'the other way round' : I have already setup Pulse Width Modulation to generate simple square wave signals that correctly made the piezo 'beep': and this also has the side-effect of making the analogue 3.5MM audio jack 'beep' at the same time. (Because this too uses the same [two] PWM generators to generate its audio I learnt recently).
What I want to know is: can any program which outputs audio to the analogue audio output Jack - be routed to a one or two GPIO pins as well ?