Skip to main content

oryksa 1.3.0 copy "oryksa: ^1.3.0" to clipboard
oryksa: ^1.3.0 copied to clipboard

Official Flutter SDK for ORYKSA AI Employees. The AI bubble for your tab bar, a ready in-app chat and voice (as in the ORYKSA app), and a client for the ORYKSA API v1.

1.3.0 #

  • ORYKSA for TV apps: package:oryksa/tv.dart (Android TV, Google TV, Fire TV with Fire OS). Only what the AI does for every TV app, driven only by the remote (arrows, OK, Back):
    • OryksaPresenter + OryksaPresenterView: the AI speaks with a native voice for the locale (from the server, never in the code) and big subtitles. Every line is charged by the ORYKSA interaction cost table each time she says it or shows it (per piece of up to 600 characters), a repeated line too: a spoken line at the voice price, a subtitles-only line at the text price. The exact number comes in the X-ORYKSA-Interactions-Spent header, and the line appears only once the server has counted it; a line not counted (no interactions left, no network) is not shown. Lines already said are kept on the device and sent with cached: true and their voice_rev, so the server can charge them without making the voice again. With no voice for the locale she shows the subtitles only, never a robot voice. OK and Back on the remote stop her. Server route: POST /v1/client/tts with locale and purpose: "presenter". say(text, voice: false) shows the subtitles only, at reading speed, with no sound, and is charged at the text price (voice: false in the request).
    • OryksaTvAssistant + showOryksaTvAssistant: a conversation with the AI for the remote, with a focus ring and buttons in one row. Questions, buttons, texts and rules come from GET /v1/client/agent?locale= (block tv). Typing uses the system keyboard, and only the Send button sends (closing the Fire TV keyboard with Back used to send the message). What a screen reader says around the typing dialog is the server's close text, never a built-in English word, and the dialog frees its text field only once it is gone (with a screen reader on, its closing animation used a freed field).
    • OryksaPhoneVoice + OryksaPairingCard: the phone as the microphone. The TV shows a QR code and a code, the phone opens the ORYKSA page, and what the person says arrives as text (POST /v1/client/tv/pair, long-poll of .../events, DELETE). With the QR card closed, the assistant panel shows where the phone stands (connected, listening, the phone left) with the server's texts in the chosen language, as on Android.
    • OryksaTvMic.isAvailable(): whether the TV lists an audio input. It never asks for the permission.
    • OryksaTvBackend: the pieces run on the ORYKSA API (OryksaTvClientBackend) or on a simulated backend for tests and demos (OryksaTvFakeBackend).
  • OryksaClient(platform: ...): the device sent as platform (fire_tv, android_tv...). Without it nothing changes. OryksaClient.public(..., platform:, appId:) sends both to POST /public/sessions. The new request() and requestAudio() call endpoints the client does not wrap.
  • Proven on a Fire TV Stick (AFTSS, Fire OS 7.7.1.7) against the real server: the presenter in pt-BR (pt-BR voice) and in it-IT (en-US voice), the voice kept on the device playing again, Back stopping her, the assistant with a real reply, the keyboard, and the real QR with the phone page connected. Not proven there: the charging of every line, a repeated one and a subtitles-only one too (proven against the real server, not on the TV yet), the physical remote (the keys were sent by adb), the voice coming from a real phone, and other TVs.
  • Tests: a live test against the real server (test/tv_live_test.dart) runs only with ORYKSA_LIVE=1 and the token of a test account from the environment (ORYKSA_TV_TOKEN or ORYKSA_TV_TOKEN_FILE); without it, it is skipped and flutter test never calls the server.

1.2.6 #

  • The AI doing what you want in your app: client.ai(...). An AI task of your own feature, from the app, with the session token (never the secret key): instructions, text, up to 4 photos and an optional JSON Schema; the answer comes back as text and, with a schema, as an object in json. Each answer counts as 1 ORYKSA interaction. It does not create a conversation in the business's inbox and never acts on the account. Example: read the tyre size in a photo and show the products that fit. Server route: POST /v1/client/ai.

1.2.5 #

  • Her voice on the loudspeaker on Android. The voice conversation played her voice as a phone call: Android sent it to the earpiece, at call volume, so it was very low (TugaFreela app, 21/11/2026). The SDK now turns on the conversation mode with the loudspeaker, like iOS (defaultToSpeaker) and the native Android SDK, and gives the phone back as it was when the voice closes. With a headset (wired, USB, Bluetooth or a hearing aid) nothing is forced. Add <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/> to your AndroidManifest: without it Android ignores the loudspeaker, and the SDK then plays her voice as media (loudspeaker, media volume). Checked on an Android 14 emulator by CI (.github/workflows/voice-route.yml): with 1.2.4 the mode stays NORMAL with no communication device; with 1.2.5 the mode is MODE_IN_COMMUNICATION and the device is the loudspeaker.
  • Links you can tap, with an Open button. The links of her replies were plain text. They can now be tapped in the chat (web and e-mail), and each link gets a card under the reply with the picture and the title of the page and an Open button. Titles and pictures come from OryksaClient.linkPreview (new GET /v1/client/link-preview), only for the pages of the business's own site (its website chat domains). onLink on OryksaChat, OryksaChatButton, OryksaTabBubble, OryksaBottomBar, showOryksaChat, showOryksaChatScreen and OryksaVoiceScreen lets your app open its own screens (return true) instead of the browser.
  • The voice screen shows what she says, the short spoken version, without the addresses, with the same cards under it; tapping Open closes the voice screen. OryksaVoiceController.lastSpoken.
  • Attach a photo, take one or send a document. The chat has an attach button (on by default, attachments: false hides it): a photo from the library, the camera (not on the web), or a document (PDF, Word, text, CSV, up to 8 MB). The AI looks at the photo and reads the document (new file_base64 / file_name / file_mime on POST /v1/client/chat, OryksaFile, send(file:)). iOS needs NSCameraUsageDescription and NSPhotoLibraryUsageDescription in Info.plist. Your onPickImage still picks the library photo when you pass it.
  • Example: Android Gradle Plugin 9.1.1 (the minimum of the current Flutter stable).

1.2.4 #

  • Documentation only, no change in the SDK code. The README is now in English, Portuguese, Spanish and French, with real screenshots of the example app (taken by CI with an ORYKSA test account), an animated overview of the ORYKSA SDKs and a Colours and theme section.
  • The example app contains the README theme code (example/lib/theme_example.dart), so dart analyze and the web build check it on every push. ORYKSA_SCREEN=chat|theme (or ?screen= on the web) opens the chat directly.
  • The YouTube link of the author section is now https://www.youtube.com/@ORYKSA.

1.2.3 #

  • The lead now says which app it came from. Every message sent with OryksaClient.send (and so everything the chat and the voice screen send) carries platform: ios on an iPhone or iPad, android on an Android phone or tablet, flutter on the web, macOS, Windows and Linux. The owner's new-lead notice can then say "in your app (iPhone)" or "(Android)" instead of just "in your app". Before this, platform only went out when the message carried voice numbers, so a lead that was typed arrived with no device at all.
  • X-ORYKSA-SDK now reports the real version. The constant had been left at 1.2.1 while pub.dev served 1.2.2, so every 1.2.2 install logged itself as 1.2.1. A test now fails if it ever drifts from pubspec.yaml again.
  • Voice telemetry keeps working: the server reads ios and android as the sdk_ios and sdk_android channels, and flutter as before.

1.2.2 #

  • Android voice fixed. On Android the voice screen got stuck on "I'm listening": the AI's spoken answer never played and the microphone stopped after her first reply. Two causes, both fixed:
    • Her voice now plays from a temporary file. Playing bytes from memory goes through a local http://127.0.0.1 proxy, which Android 9+ blocks unless the app allows cleartext traffic. No change is needed in your app (web keeps playing from memory).
    • The microphone no longer pauses when her voice starts (audioInterruption: none; record_android 1.5+ paused it for good). If the microphone ever stops delivering sound, it reopens by itself.
  • Open in voice or chat. The bubble opens what the business chose in the ORYKSA panel (Connectors > Website chat > Open in). The default is the voice screen. OryksaAgent.openMode (voice or chat), showOryksaChatScreen(startInVoice:) and OryksaChat(startInVoice:). Closing the voice screen leaves the customer in the chat. With no voice in the plan the chat opens as before.
  • Type it in the voice screen. When the AI asks for an e-mail, a phone number or a name, the voice screen shows a text box to type it (OryksaReply.collecting, OryksaVoiceController.sendText).
  • The halo breathes while the conversation is open and grows with the customer's voice (OryksaVoiceController.level).
  • Faster and steadier turns:
    • the closing silence is cut before the upload;
    • a pending reply is checked every 0.5 s (was 1.5 s);
    • a cough or the TV while she is thinking no longer throws away the answer on its way;
    • noise transcribed as "." is not sent as a message.
  • Needs record 6.2 or newer.

1.2.1 #

  • Company logo in the tab bar bubble. The business now chooses in the ORYKSA panel (Connectors > Website chat) whether the bubble shows the photo of the AI or the company logo. With the logo, the bubble shows the whole logo on white (not cropped) and the business name under it. The chat and the voice screen that open on tap keep the photo and name of the AI, and screen readers still hear "Talk to" + the name of the AI.
  • OryksaTabBubble(image:) and OryksaBottomBar(bubbleImage:): an image of your app (for example AssetImage('assets/logo.png')) for the bubble, over what the panel chose. label / bubbleLabel still win over the text from the panel.
  • OryksaAgent gets launcherIcon (ai or logo), launcherImage and launcherLabel, read from launcher in GET /v1/client/agent. With an older server that does not send it, the bubble shows the photo and name of the AI, as in 1.2.0.

1.2.0 #

  • Tab bar bubble. OryksaTabBubble: the round button with the photo of the AI (from Your AI in ORYKSA), a ring and an optional unread dot, for the middle of a bottom tab bar, as in the ORYKSA app. Tapping it opens the chat with voice.
  • OryksaBottomBar: a Material 3 style bottom bar with your NavigationDestination items and the bubble in the middle (same selectedIndex / onDestinationSelected as NavigationBar). The bubble rises a little above the bar (raise), the bar follows the app theme and the safe area.
  • showOryksaChatScreen: the chat full screen on phones and as a side panel on wide screens (840 dp or more), at the end of the screen (the left in right-to-left apps), so the app stays visible beside it.
  • The microphone in the chat opens the voice screen, with the same behaviour as before.
  • Dark mode: OryksaChatTheme.dark() and OryksaChatTheme.of(context); the bubble and its chat follow the light or dark theme of the app when no theme is given. New line color in OryksaChatTheme.
  • Languages: lang also accepts locale tags (pt-BR, pt_BR, pt-PT, es-ES); the bubble and the bar follow the app locale when lang is null (oryksaLang, oryksaLangOf). Accessibility label "Talk to" + the name of the AI in English, Portuguese (Portugal and Brazil) and Spanish, with "new message" when the dot is on.
  • The chat sends the language of the screen with each message (lang in send, sendAndWait, sendAndWaitReply and OryksaVoiceController), so a short message such as "ok" gets the reply in that language.
  • Right-to-left safe chat bubbles and paddings.
  • Example app: four tabs with the bubble in the middle, the language of the phone, light and dark, two columns on tablets.
  • Server side: createSession takes customerEmail and customerPhone. For a user signed in to your app, the AI asks for no contact details and never tells them to register or sign in.
  • Apps without a server of their own: OryksaClient.public(chatToken: ...) opens the chat with the business's public chat token (the one the website chat uses); no secret key, and the conversation is kept apart from the ones a server creates.
  • Photos: OryksaImage and send(..., image:); onPickImage on the chat, the bubble and the bar shows a camera button (bring your own picker, for example image_picker). The AI looks at the photo and answers about it.
  • Needs Flutter 3.27 or newer (the SDK already used APIs from it).

1.1.1 #

  • Voice screen: the words the person says are never shown on screen. While the AI thinks it shows "I'm listening" / "One moment..." in the interface language; the AI's answer still shows as text. Same behaviour as the ORYKSA apps, web and extensions.

1.1.0 #

  • Copy button under each reply of the AI (copies the text, shows a check for a moment), as in the ORYKSA apps and extension.
  • Voice: a voice screen with the photo of the AI ("I'm listening" / her answer, Mute, Close) opened from the microphone in the chat. The same behaviour as the ORYKSA app: the microphone stays open while she speaks and only a human voice cuts her off (typing, TV, birds and her own echo do not); she stops on the word and the text stays in the chat; the second before the cut is kept; 700 ms of silence closes a sentence (15 s at most); a whisper gets a whispered, shorter answer; her voice is the one chosen in ORYKSA and, if it fails, the text is shown without a robot voice.
  • The voice engine is the ORYKSA app engine (Vad), with the same audio tests on real recordings.
  • appContext: tell the AI which screen of your app the customer is on (product, cart, booking) so it answers about it.
  • The client gets tts, transcribe and voiceStats; send accepts voice, whisper, appContext and returns speech (the short spoken version).
  • The agent includes photo (the AI photo from Your AI), voice and language.
  • Bold text (**) in the chat bubbles.
  • The SDK serves the customers of the business only: it is never an interface for the owner.
  • Breaking: the server helpers moved out of the app library. Oryksa (secret API key: createSession, updateAgent, setPages, addFaq, learnApp) and verifyWebhook are now in package:oryksa/oryksa_server.dart, only for the subscriber's backend. A Flutter app that imports package:oryksa/oryksa.dart can no longer change the AI or its Brain.
  • Needs the microphone permission for voice: Android RECORD_AUDIO, iOS NSMicrophoneUsageDescription.

1.0.1 #

  • README: about the author.

1.0.0 #

  • First release.
  • OryksaClient: in-app client with short-lived session tokens (agent, send, sendAndWait, messages).
  • OryksaChat, OryksaChatButton and showOryksaChat: ready chat with the look of the ORYKSA website chat, name and photo of the AI from the ORYKSA account, in English, Portuguese (Portugal and Brazil) and Spanish.
  • Oryksa: server client for Dart backends (chat, sessions, Brain pages and FAQ, learnApp).
  • verifyWebhook: ORYKSA webhook signature check.
0
likes
130
points
463
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

Official Flutter SDK for ORYKSA AI Employees. The AI bubble for your tab bar, a ready in-app chat and voice (as in the ORYKSA app), and a client for the ORYKSA API v1.

Homepage
Repository (GitHub)
View/report issues

Topics

#ai #chat #customer-support #voice #sdk

License

MIT (license)

Dependencies

audio_session, crypto, file_picker, flutter, http, http_parser, image_picker, just_audio, record, url_launcher

More

Packages that depend on oryksa