messages.transcribeAudio #

Transcribe voice message

Layer 223

messages.transcribedAudio#cfb9d957 flags:# pending:flags.0?true transcription_id:long text:string trial_remains_num:flags.1?int trial_remains_until_date:flags.1?int = messages.TranscribedAudio;
---functions---
messages.transcribeAudio#269e9a49 peer:InputPeer msg_id:int = messages.TranscribedAudio;

Parameters #

NameTypeDescription
peerInputPeerPeer ID where the voice message was sent
msg_idintVoice message ID

Result #

messages.TranscribedAudio

Only users can use this method #

Possible errors #

CodeTypeDescription
400MSG_ID_INVALIDInvalid message ID provided.
400MSG_VOICE_MISSINGThe specified message is not a voice message.
400MSG_VOICE_TOO_LONGThe specified voice message is too long to be transcribed.
400PEER_ID_INVALIDThe provided peer id is invalid.
403PREMIUM_ACCOUNT_REQUIREDA premium account is required to execute this action.
400TRANSCRIPTION_FAILEDAudio transcription failed.

Voice message transcription #

How to transcribe voice messages.