AshciR / group-chat-digest

0 stars 0 forks source link

[SPIKE] Summarizing voice messages #76

Open AshciR opened 5 months ago

AshciR commented 5 months ago

It will be a good enhancement if we include voice messages into the summarization.

Notes:

AshciR commented 3 weeks 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