Getting the access token for the legacy TTS say

Hi,
I am trying to get the TTS URL but not sure how to get the ACCESS_TOKEN mentioned here. Any ideas?