πŸ”¬ Audio transcription with Telegram and Groq Whisper

⚑ 928 views Β· πŸ”¬ Document Extraction & Analysis

Description

Short description

Transcribe Telegram voice/audio messages to text using Groq’s OpenAI-compatible Whisper endpoint. Replies are delivered either as a Telegram message or as a downloadable .txt file, plug-and-play for n8n with minimal setup.

Who’s it for / Uses

How it works (overview)

  1. Telegram Trigger β€” workflow starts on incoming message.
  2. Switch (Audio/Voice) β€” detects voice or audio. If neither, replies β€œWrong file type” and stops.
  3. Telegram Download β€” downloads the audio using the file_id, outputs file path/binary.
  4. Set Node (credentials + options) β€” stores Groq_API and Telegram_access_token (required) and transcript_output_format (message or file).
  5. HTTP Request β†’ Groq (Whisper) β€” uploads audio (multipart/form-data) to Groq’s transcription endpoint and receives text.
  6. Reply Switch β€” routes to either:
    • Message branch: send transcribed text as a Telegram message.
    • File branch: convert transcript to .txt and send as a document.

Requirements

Important setup & notes

Security & best practices

πŸ”— Nodes Used

HTTP Request, Telegram, Telegram Trigger, Convert to File

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup