providerMimoAudioSpeech (mimo-audio/index.ts)

airi · packages/provider-inference/src/providers/cloud/mimo-audio/index.ts · typescript · MIT
voice

Provides MiMo audio TTS and transcription providers for cloud inference.

// Source: https://github.com/moeru-ai/airi | License: MIT | Copyright 2024-PRESENT Neko Ayaka
// Provided via justclaw.it.com; keep this notice with the code.
import type { ProviderContext } from '../../../types'

import { z } from 'zod'

import { defineProvider } from '../../registry'

const mimoSpeechConfigSchema = z.object({
  apiKey: z.string(),
  baseUrl: z.string().default('https://api.xiaomimimo.com/v1/'),
  model: z.string().default('mimo-v2.5-tts'),
  voice: z.string().default('mimo_default'),
  format: z.string().default('wav'),
  stylePrompt: z.string().optional(),
  voiceSample: z.string().optional(),
})

const mimoTranscriptionConfigSchema = z.object({
  apiKey: z.string(),
  baseUrl: z.string().default('https://api.xiaomimimo.com/v1/'),
  model: z.string().default('mimo-v2-o

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key