Vary recording timeout for conversational skills

Hi, I want to create separate recording timeouts for normal listening and for conversational context in one of my skills. In that particular skill I want to allow up to 15 seconds of silence before something is spoken and have 2 seconds of silence to call the utterance complete while keeping the defaults for normal listening after wake word trigger.
I know that I can change these parameters in the ResponsiveRecognizer class, but how do I make it dynamic for that one skill?
I checked this : Vary the recording timeout lenght - #2 by pcwii and I need guidance on how i can go about making the timeout dynamic for my skill?
Thanks