narrator
narrator copied to clipboard
API Keys
Where can I add my API keys so that I don't need to export them every time I launch the project?
Put it an .env
file and make sure it gets loaded by either:
- following https://stackoverflow.com/a/61029741/7365866
- using a more popular tool (Poetry), there's a guide: https://www.ianwootten.co.uk/2022/02/18/how-to-use-env-files-with-poetry/:
- using
pdm
and adding this to your pdm file:
[tool.pdm.scripts]
_.env_file = ".env"
There are other ways, but these would be the most popular (most popular first)
Example .env
:
ELEVEN_API_KEY=
ELEVEN_VOICE_ID=