〜がする
there's a smell, sound, taste or feeling of
Noun (音 · 声 · におい · 味 · 気) + がする
Sign up free to review this point on a spaced schedule.
Sensations that simply reach you take がする: いいにおいがする, "something smells good"; 変な音がする, "there's a strange noise". The sensation itself is the subject, so the particle is が.
The common ones are 音 (sound), 声 (voice), におい (smell), 味 (taste) and 気 (feeling): 誰かに見られている気がする, "I feel like someone's watching me".
Compare 聞こえる and 見える, which say something can be perceived. がする describes the sensation you're getting, often with an adjective or のような in front: 甘い味がする, "it tastes sweet".
You're not doing anything, so を doesn't fit: 音をする is wrong. For making a noise on purpose, Japanese uses 音を立てる.
Examples
台所からいいにおいがします。
Something smells good in the kitchen.
隣の部屋から変な音がする。
There's a strange noise coming from the next room.
このお茶は花のような味がします。
This tea tastes like flowers.
誰かに見られている気がする。
I feel like someone's watching me.
外で子どもの声がします。
I can hear children's voices outside.