Add audio transcription to a chat bot

They built a tool for a QQ group chat agent that could turn meeting recordings into text and feed the transcript back into the bot.

Done with Custom agent· Advanced· Nov 2026

What they did
A contributor working with Hermes Agent and a GLM model, under foxlesbiao’s review, added a get_message_audio tool to the QQ bot. The tool pulls the voice, video, or audio-file link from a message, saves the file locally, converts it with ffmpeg into 16k PCM, and sends it to Seed-ASR over WebSocket. The returned transcript then goes back into the chat model.
How it went
A 58MB real meeting recording was processed all the way through on the production system. The first version broke because ffmpeg failed on every run, but after fixes the pull request was merged.
Tips
If the source file may be m4a or mp4, write it to disk first so ffmpeg can read the metadata correctly. Put a per-hour usage cap in place, since transcription costs can climb quickly with pay-per-use services.

Try it yourself with Claude Code

In my [project folder], add a tool that can read a QQ message containing a [voice/video/audio] attachment, download the media, convert it to 16k PCM with ffmpeg, and send it to [speech-to-text service] for transcription. Return the transcript to the bot, then use it to draft [meeting minutes / a summary / action items]. Before any irreversible step such as sending data, deleting files, or making external calls, stop and ask for my approval. Test it on a [sample recording path] and show me the full flow end to end.

Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.

Get 3 agent uses like this every morning

With the day's top AI news. Free, and one click to unsubscribe.