S
S
SuperZombie2020-09-24 17:57:49
Python
SuperZombie, 2020-09-24 17:57:49

How to convert Telegram Voice to WAV using Python?

Good afternoon. I am writing a user bot for Telegram in Python. I want it to be able to recognize an audio message into text on command. Speech recognition only works with wav files. But when downloading from, the Pyrogram.download_media()ogg telegram voice file is downloaded. I have already rummaged through the entire Internet and in all the converter codes there is an error similar to this one:

Error opening 'D:\\1234.ogg': File contains data in an unimplemented format.

How can I convert ogg to wav?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Shitskov, 2020-09-24
@SuperZombie

Possible answer
https://stackoverflow.com/a/36379991

V
Viktor T2, 2020-09-24
@Viktor_T2

pydub
ffmpeg

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question