Open AshciR opened 5 months ago
# TODO: Pull into a function
if update.message.voice:
voice_file_id = update.message.voice.file_id
voice_msg = await context.bot.get_file(voice_file_id)
# TODO: save to a directory
await voice_msg.download_to_drive()
logger.info(f"Voice message {voice_msg} downloaded")
# TODO: convert to text via OpenAI
# TODO: delete the file
Proved it out
It will be a good enhancement if we include voice messages into the summarization.
Notes: