in src/azurechat/features/chat/chat-ui/chat-context.tsx [79:85]
initialMessages: transformCosmosToAIModel(props.chats),
onFinish: async (lastMessage: Message) => {
if (isMicrophoneUsed) {
await textToSpeech(lastMessage.content);
resetMicrophoneUsed();
}
},