danneu / telegram-chatgpt-bot

a Telegram ChatGPT bot that supports text prompts and two-way voice memos
33 stars 8 forks source link

Make text-to-speech optional #14

Open danneu opened 1 year ago

danneu commented 1 year ago

Voice synthesis is only a cherry on top. Right now the bot crashes if AZURE_SPEECH_{REGION,KEY} are unconfigured which is annoying for anyone who just wants a text-only bot.

If Azure env vars are unconfigured, the bot should just skip on voice synthesis.

TODO looks something like this: