Quick Start
Get up and running with Xybrid in minutes
Get Xybrid running in your app with a few lines of code. Choose your SDK below.
Install
# pubspec.yaml
dependencies:
xybrid_flutter: ^0.1.0-beta5flutter pub getRun inference
import 'package:xybrid_flutter/xybrid_flutter.dart';
await Xybrid.init();
// Load a model and run text-to-speech
final model = await Xybrid.model('kokoro-82m').load();
final result = await model.run(
XybridEnvelope.text("Hello from Xybrid!"),
);
// result.audioBytes contains the generated speech audioExpected output: Audio bytes containing synthesized speech.
Install
Add via Swift Package Manager in Xcode:
File > Add Package Dependencies and enter:
https://github.com/xybrid-ai/xybridOr add to Package.swift:
dependencies: [
.package(url: "https://github.com/xybrid-ai/xybrid", from: "0.1.0")
]Run inference
import Xybrid
// Load a model from the registry
let loader = ModelLoader.fromRegistry(modelId: "kokoro-82m")
let model = try loader.load()
// Run text-to-speech
let envelope = Envelope.text("Hello from Xybrid!")
let result = try model.run(envelope: envelope)
// result.audioBytes contains the generated speech audioExpected output: result.success == true with audio bytes in result.audioBytes.
Install
// build.gradle.kts
dependencies {
implementation("ai.xybrid:xybrid-kotlin:0.1.0-beta5")
}Run inference
import ai.xybrid.*
// Load a model from the registry
val loader = XybridModelLoader.fromRegistry("kokoro-82m")
val model = loader.load()
// Run text-to-speech
val envelope = Envelope.text("Hello from Xybrid!")
val result = model.run(envelope)
// result.audioBytes contains the generated speech audioExpected output: result.success == true with audio bytes in result.audioBytes.
Install
In Unity, go to Window > Package Manager > + > Add package from git URL and enter:
https://github.com/xybrid-ai/xybrid.git#upmOr pin a specific version:
https://github.com/xybrid-ai/xybrid.git#upm/v0.1.0-beta5Run inference
using Xybrid;
using UnityEngine;
// Initialize the SDK
XybridClient.Initialize();
// Load a TTS model and generate NPC dialogue
using var model = XybridClient.LoadModel("kokoro-82m");
using var result = model.Run(Envelope.Text("Welcome, traveler. The road ahead is dangerous."));
result.ThrowIfFailed();
Debug.Log($"Output: {result.Text}");
Debug.Log($"Latency: {result.LatencyMs}ms");Expected output: result.Success == true with audio output from the TTS model.
Install
cargo install xybrid-cliRun inference
# List available models
xybrid models list
# Run text-to-speech
xybrid run kokoro-82m --input "Hello from Xybrid!" --output hello.wav
# Run speech-to-text
xybrid run whisper-tiny --input recording.wavExpected output:
Transcription: "Hello, how can I help you?"