haskell-tdlib-2.1.31.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; can be used only if getOption("can_recognize_speech") or speech recognition trial is available; must not be used in secret chats. The file must be in OGG format with the Opus codec and must have a size of up to 1 MB. 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