The veena produces sound when the strings are plucked or strummed, creating vibrations that resonate through the instrument.