haskell-tdlib-2.1.30.0: Binding to the Telegram Database Library
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Query.RecognizeSpeechInFile

Synopsis

Documentation

data RecognizeSpeechInFile Source #

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. Returns Text

Constructors

RecognizeSpeechInFile 

Fields

  • audio_file :: Maybe InputFile

    The audio file

  • recognition_id :: Maybe Int

    Unique identifier of the speech recognition, which will be used in updateSpeechRecognitionInFile to send partially recognized text; pass 0 if partial results aren't needed