I always thought the Famicom's audio path was rather odd, at least how it related to special chips. But today, after looking at the Famicom's schematics I finally figured it out. After the 2A03's internal five channel audio is outputted and mixed (any input from the second controller's built-in microphone is added at this point), it goes to the cartridge connector pin #45. If there is extra sound hardware in the cartridge the sound will be mixed with the NES's internal sound, then be outputted from pin #46 to the audio output and thence to the speakers. If there is no sound hardware on the cartridge, then the cartridge will connect pins #45 and #46 together, making a loop that goes straight to the audio output without further ado.
On the NES, the addition of the unused expansion port complicates matters somewhat. The NES's audio is routed straight to an RCA jack and the RF circuitry. Pin #3 is audio input. This allows sound produced on a cartridge to be mixed with the NES's sound. In contrast to the Famicom, which mixed expansion sounds in the cartridge, the NES must mix the sounds inside the console itself. All you have to do is get pin the Famicom cartridge's pin #46 to pin #3 of the expansion connector.
On the NES, the addition of the unused expansion port complicates matters somewhat. The NES's audio is routed straight to an RCA jack and the RF circuitry. Pin #3 is audio input. This allows sound produced on a cartridge to be mixed with the NES's sound. In contrast to the Famicom, which mixed expansion sounds in the cartridge, the NES must mix the sounds inside the console itself. All you have to do is get pin the Famicom cartridge's pin #46 to pin #3 of the expansion connector.