The TS-8950 includes a small speaker capable of 82dBA (100mW). This is accessed in most typical applications using the alsa software interface.
The audio codec outputs the same channel to the speaker and to the headphone port on the audio header. You can toggle a GPIO to disable the speaker and just play to the heapdhone port.
# Turn on speaker (on by default) echo 1 > /sys/class/leds/en-speaker/brightness # Turn off speaker echo 0 > /sys/class/leds/en-speaker/brightness