filmov
tv
Voice Telegram BOT in PYTHON and Aiogram 3

Показать описание
PythonPyro demonstrates how to create a Telegram bot capable of responding with voice messages. Throughout the tutorial, you'll learn to use the GTTS library to convert text to speech, set up command and message handlers, and visualize sound waves while transmitting them in the OGG format using the OPUS codec. Each step is explained in detail, allowing you to follow the instructions and create your own voice bot. Don't forget to subscribe to the channel and share your ideas in the comments!
command fot ffmpeg:
ffmpeg_command = ['ffmpeg', '-i', 'pipe:0', '-c:a', 'libopus', '-f', 'ogg', 'pipe:1']
#aiogram #bot #telegram #voice #gtts
command fot ffmpeg:
ffmpeg_command = ['ffmpeg', '-i', 'pipe:0', '-c:a', 'libopus', '-f', 'ogg', 'pipe:1']
#aiogram #bot #telegram #voice #gtts