function init(options: { apiKeys: string[]; logger?: Logger;}): void
Initializes the Tafrigh library with the provided Wit.ai API keys and optional custom logger.You must call this function before using transcribe() or other Tafrigh functions. The API keys are used to authenticate requests to the Wit.ai speech-to-text service.
Array of Wit.ai API keys to use for transcription. Multiple keys enable concurrent transcription of audio chunks. The library rotates through the provided keys to distribute requests.
Optional custom logger instance for logging library operations. The logger should implement the Logger interface with optional methods: debug, info, warn, error, and trace. If not provided, the library uses a default logger.