There are no separate audio line / wires in an HDMI cable defined. The audio signal is embedded in between of the video signal. Hence no additional work at the DVI connector is needed. You probably just need a passive DVI-to-HMDI adapter / cable.
If your input device is able to handle HDMI signaling then it will works. If your receiving device has a legacy DVI-D input it won’t work.