Skip to content

feat(voice): add Xiaomi MiMo STT and TTS providers - #186

Merged
jubaoliang merged 2 commits into
TencentCloud:developfrom
miaowmint:feat/mimo-voice
Aug 6, 2026
Merged

feat(voice): add Xiaomi MiMo STT and TTS providers#186
jubaoliang merged 2 commits into
TencentCloud:developfrom
miaowmint:feat/mimo-voice

Conversation

@miaowmint

Copy link
Copy Markdown

Add Xiaomi MiMo as a new voice provider supporting both speech-to-text (ASR, mimo-v2.5-asr) and text-to-speech (mimo-v2.5-tts).

Backend:

  • presets.py: add 'mimo' to builtin preset IDs; two presets (mimo-stt, mimo-tts) sharing kind='mimo'. TTS preset carries limited_free=True
  • adapters.py: transcribe_mimo() POSTs audio as base64 data URL to /chat/completions with model mimo-v2.5-asr; synthesize_mimo() POSTs text in assistant message with audio config to /chat/completions with model mimo-v2.5-tts, yields decoded WAV bytes
  • manager.py: add 'mimo' dispatch in transcribe() and synthesize()
  • test_stt/test_tts: include 'mimo' in credential checks

Frontend:

  • VoiceSettingsPanel: endpoint Select (pay-as-you-go sk- vs Token Plan tp-), API key input, voice Select for TTS (9 preset voices)
  • limited_free badge shown on TTS preset card
  • voice.ts: add limited_free?: boolean to VoicePreset
  • i18n: 6 new keys (mimoHint, mimoEndpoint, mimoEndpointPayg, mimoEndpointTokenplan, mimoVoice, limitedFree) in en.json and zh.json

Mimo API uses OpenAI Chat Completions format for both STT and TTS, requiring custom adapters instead of reusing existing OpenAI voice adapters that target /audio/transcriptions and /audio/speech.

Summary

Target branch

  • Base is develop (feature / fix — default)
  • Base is main (release/* or hotfix/* only)

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation
  • Refactor / chore
  • Release / hotfix

Test plan

  • make all passes locally
  • Added/updated tests

Checklist

  • Updated CHANGELOG.md (if user-facing)
  • README / docs updated (if needed)

Add Xiaomi MiMo as a new voice provider supporting both speech-to-text
(ASR, mimo-v2.5-asr) and text-to-speech (mimo-v2.5-tts).

Backend:
- presets.py: add 'mimo' to builtin preset IDs; two presets (mimo-stt,
  mimo-tts) sharing kind='mimo'. TTS preset carries limited_free=True
- adapters.py: transcribe_mimo() POSTs audio as base64 data URL to
  /chat/completions with model mimo-v2.5-asr; synthesize_mimo() POSTs
  text in assistant message with audio config to /chat/completions
  with model mimo-v2.5-tts, yields decoded WAV bytes
- manager.py: add 'mimo' dispatch in transcribe() and synthesize()
- test_stt/test_tts: include 'mimo' in credential checks

Frontend:
- VoiceSettingsPanel: endpoint Select (pay-as-you-go sk- vs Token Plan tp-),
  API key input, voice Select for TTS (9 preset voices)
- limited_free badge shown on TTS preset card
- voice.ts: add limited_free?: boolean to VoicePreset
- i18n: 6 new keys (mimoHint, mimoEndpoint, mimoEndpointPayg,
  mimoEndpointTokenplan, mimoVoice, limitedFree) in en.json and zh.json

Mimo API uses OpenAI Chat Completions format for both STT and TTS,
requiring custom adapters instead of reusing existing OpenAI voice
adapters that target /audio/transcriptions and /audio/speech.
@jubaoliang
jubaoliang merged commit 545d88b into TencentCloud:develop Aug 6, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants