/** * @internal * * `@elevenlabs/client/internal/unity` * * A curated, low-level surface of `@elevenlabs/client` shaped to the needs of * the [ElevenLabs Unity SDK](https://github.com/elevenlabs/unity)'s WebGL * bridge. * * ## Stability contract * * This entrypoint carries **no semver guarantees**. It is stable only for the * Unity SDK's own use. Any external consumer must accept that additions, * removals, or renames may happen in any release without a major-version bump. * * ## Why it exists * * On WebGL the Unity SDK's C# `Conversation` type delegates to this library * via an Emscripten jslib bridge. The bridge bypasses `Conversation` / * `VoiceConversation` entirely and drives three smaller objects directly: * * ``` * C# Conversation * ├── IConnection → wraps WebSocketConnection / WebRTCConnection * ├── IInputController → wraps MediaDeviceInput * └── IOutputController → wraps MediaDeviceOutput * ``` * * The concrete platform classes (`MediaDeviceInput`, `MediaDeviceOutput`) and * the audio-wiring helpers (`attachInputToConnection`, * `attachConnectionToOutput`) are not exposed on the public `.` entrypoint * because they are too low-level for general consumers. This sub-path * collects exactly the symbols the Unity bridge needs behind one stable import, * without pulling any unrelated SDK code into a size-sensitive WebGL bundle. * */ export { MediaDeviceInput } from "../platform/web/input.js"; export { MediaDeviceOutput } from "../platform/web/output.js"; export { attachInputToConnection } from "../utils/attachInputToConnection.js"; export { attachConnectionToOutput } from "../utils/attachConnectionToOutput.js"; export { setWebRTCAudioAdapterFactory } from "../WebRTCAudioAdapter.js"; export type { WebRTCAudioAdapter, AnalysisResult, } from "../WebRTCAudioAdapter.js"; export type { MediaDeviceInputConfig } from "../platform/web/input.js"; export type { MediaDeviceOutputConfig } from "../platform/web/output.js"; export type { WebRTCConnectionConfig } from "../utils/WebRTCConnection.js"; //# sourceMappingURL=unity.d.ts.map