Send Voice Message to Telegram Using Raspberry Pi

Send Voice Message to Telegram Using Raspberry Pi

Introduction

There have few Raspberry Pi Telegram tutorials that I have shared before that involve text message such as:

  1. Displaying Telegram Message on Dot Matrix Using Raspberry Pi
  2. Controlling Electrical Appliances Through Telegram Message Using Raspberry Pi

So now I would like to try something new which is voice message. Before that, I recommend you to try the tutorial above as a start for Raspberry Pi Telegram bot application.

Video

This video shows how to send voice message to Telegram using Raspberry Pi.

 

Hardware Preparation

This is the list of items used in the video.

Sample Program

This is python 3 sample program to record voice and send to Telegram. Please edit code at line 39 with your Telegram bot token.

 

Thank You

References:

  1. Using Telegram Bot with Raspberry Pi: Sharing Text and Files
  2. To use USB mini microphone on Raspbian

Thanks for reading this tutorial. If you have any technical inquiry, please post at Cytron Technical Forum.

Related Products