unityengine.component does not contain definition - volume or pitch ?

getting error on first 2 lines - saying UnityEngine.AudioSource does not contain a definition for volume. Same for pitch. How do i fix this ?

newProjectile.GetComponent ().volume (0.18);
newProjectile.GetComponent ().pitch(0.15);

Everything you see in inspector when you select an GameObject is component( transform, meshfilter, mesh renderer, rigidbody, audiolistener etc etc). So when you call GetComponent you have to specify which component you want. like this:

newProjectile.GetComponent ("AudioSource");
newProjectile.GetComponent (typeof(AudioSource));
newProjectile.GetComponent <AudioSource>();

also volume is a variable not a method so you should do

newProjectile.GetComponent <AudioSource>().volume = 1.0f;