RecognizeSpeechInFile constructor
Recognizes speech in an audio file and returns the recognized text. The file must be in OGG format with Opus codec and must have size up to 1 MB. The same rules as for recognizeSpeech apply to the Telegram Premium requirement and speech recognition trial; must not be used in secret chats
Implementation
const RecognizeSpeechInFile({
required this.audioFile,
required this.recognitionId,
});