A Web API project that can be used to receive Twitch chats, and respond to them using TTS. It uses the OpenAI API to create the responses, and saves the last 10 pieces of conversation to memory, in order for the chat to make sense. For the TTS it uses Microsoft's cognitive service (speech)
Requires to also pull the ChatGPT-API project
In order to register your OpenAI API Key, you need to create a User Secret file with your API key
{
"OpenAI": {
"ApiKey": "YourApiKey"
},
"Twitch": {
"Username": "YourTwitchChannelUsername",
"OAuthKey": "YourTwitchChannelOAuthKey"
},
"AzureTTS": {
"AzureTTSSubscriptionKey": "YourAzureTTSSubscriptionKey",
"AzureTTSSRegion": "YourAzureTTSRegion"
}
}