“Out of heaven he made you to hear his voice.” This refers to God giving the Ten Commandments from Mount Sinai.
[For more on God speaking the Ten Commandments directly to the Israelites, see commentary on Exodus 19:9.]
“on earth he made you to see.” God spoke from heaven (the cloud above the mountain), the people on earth heard the words and saw the fire.