How to use alarm volume insted of ring volume for alarm app?

I am working on an alarm app in which I wanted to use alarm volume instead of ring or media volume
All I found regarding this is Ringtone Manager that uses alarm sound location instead of alarm volume
Reason – On silent mode my app won’t be able to use any volume either media or ring volume