Two things.
-
What is the "sound sensor"? Normally things called a sound sensor are just an envelope detector and you do not get any wave information from them so they can't be used to record a sound.
-
That second diagram is the way to go but do not put that capacitor to ground on the potential divider because that just shorts out your signal.