I've got a program that says what you type, I tried it directly on the raspberry pi and worked perfectly but when I use it across a VNC server on my windows PC I can't hear what it says. Is it that you can't transfer audio across VNC? Then when I try it through SSH it also doesn't work. Then I try it directly from the raspberry pi and It doesn't work. Please help, it's not just for this program but it also is if in a future I make more complex programs and can't do it on my windows pc. Thanks in advanced.
You may want to use PulseAudio on your Pi and your target machine. There are binaries for Windows available.
Your setup would look like this:
- Make sure the Pi is running pulseaudio
- Install PulseAudio on Windows
- SSH to the Pi (possibly also install a Windows X11 server)
- Tell the X11 clients to use the PulseAudio server on your Windows host.
This should also work with the VNC solution. The X11 solution may be faster and nicer looking, but the VNC also has its merits (most notably that you can dis- and re-connect).