Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

679 B
Raw Blame
import assert from 'node:assert/strict'
import { test } from 'node:test'
import { voiceEngine, voiceEngineIds } from './voice-engine.ts'

test('Windows and Linux never offer or restore the unsupported on-device engine', () => {
  for (const platform of ['win32', 'linux']) {
    assert.deepEqual(voiceEngineIds(platform), ['openai', 'gemini'])
    assert.equal(voiceEngine('device', platform), 'openai')
    assert.equal(voiceEngine('gemini', platform), 'gemini')
  }
})

test('macOS keeps on-device dictation and provider choices', () => {
  assert.deepEqual(voiceEngineIds('darwin'), ['device', 'openai', 'gemini'])
  assert.equal(voiceEngine('device', 'darwin'), 'device')
})