No sound comes out when I connect speakers or an amplifier to the Nintendo Switch console

Do not connect speakers or amplifiers directly to the Nintendo Switch console. If you would like to use an amplifier, put the console in TV mode and connect the amplifier to the Nintendo Switch dock using an HDMI cable.