hasab_ai_flutter library

Hasab AI Flutter SDK

A comprehensive Flutter SDK for Hasab AI - speech-to-text, text-to-speech, translation, and chat capabilities for Ethiopian languages.

Supports: Amharic, Oromo, Tigrinya, and English

Classes

AudioPlayerHelper
Audio player utility for TTS playback
AudioRecorder
Audio recorder utility for voice input
ChatConversation
Model for a chat conversation
ChatHistoryResponse
Response model for chat history
ChatMessage
Individual chat message
ChatRequest
Request model for chat message
ChatResponse
Response model for chat message
ChatService
Service for AI chat interactions
ChatWidget
A prebuilt chat widget for Hasab AI conversations
HasabAI
Main SDK class for Hasab AI
HasabRequest
Base request model
HasabResponse
Base response model
PermissionsHelper
Helper class for handling runtime permissions
SpeechToTextRequest
Request model for speech-to-text conversion
SpeechToTextResponse
Response model for speech-to-text conversion
SpeechToTextService
Service for speech-to-text conversion
TextToSpeechRequest
Request model for text-to-speech conversion
TextToSpeechResponse
Response model for text-to-speech conversion
TextToSpeechService
Service for text-to-speech conversion
TranslateButton
A prebuilt translate button widget
TranslationRequest
Request model for translation
TranslationResponse
Response model for translation
TranslationService
Service for text translation
VoiceInputField
A prebuilt voice input field widget with recording and transcription

Enums

HasabLanguage
Supported languages for Hasab AI services

Exceptions / Errors

HasabAuthenticationException
Exception thrown when authentication fails
HasabException
Custom exception class for Hasab AI SDK errors
HasabFileException
Exception thrown when file operations fail
HasabNetworkException
Exception thrown when network request fails
HasabValidationException
Exception thrown when validation fails