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.
- 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.
Related agent uses
Have an agent untangle an inherited store setup
An agent investigated a handed-down tea store, turned the work into organized steps, and staged Shopify edits with approval checks before release.
Set up follow-ups and reorder alerts for a distributor
A food wholesaler used chained agents to find leads, send outreach, and surface simple inventory reorder alerts for human approval.
Turn screen recordings into repeatable procedures
They used Screenpipe to log screen and audio locally, then had an agent convert repeated work into SOPs and automations.
Use an agent to track deals and lease deadlines
A custom agent helped a commercial real estate operator monitor offers, organize follow-ups, and catch timing problems before they caused trouble.
Set up one assistant for chat, terminal, and MCP access
Bluesky uses diderot in Slack/Discord, from the command line, and through MCP to handle thousands of team questions each month.
Have an agent sort and draft your inbox replies
An author let an agent read his professional email, organize messages, and prepare replies in his style, while keeping risky cases for manual review.