Yihong89/dsh-voice-core ↗★ 2

dsh-voice-core

Shared voice engine for dsh companion plugins (dsh-teacher, dsh-companion): Qwen3-TTS proxy, audio-queue playback, auto-read of assistant replies, speak/cheer tools, voice-style presets, and the daily greeting scheduler. Consumers compose it via a preset row and configure the voice style (e.g. 御姐 / 派蒙); UI (config forms, pickers) is entirely the consumer's own. 适合开发或使用陪伴类插件,需要 Qwen3-TTS 语音播放和风格配置的用户。

패키지
dsh-voice-core
호환성
미검증
Harness peer 범위
^0.1.0-rc.6
버전
0.3.0
최근 업데이트
2026. 8. 17.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Yihong89/dsh-voice-core

配置示例

// dsh-teacher 的 apply()
import { applyVoice } from 'dsh-voice-core'

await applyVoice(ctx, {
  presetName: 'teacher',
  ttsPath: '/dsh-teacher/tts',
  styles: { onee: { label: '🎧 清冷御姐', instruct: '清冷柔和的成年女声…' } },
  defaultStyle: 'onee',
  schedulerEnabled: false,
})
// client 侧
import { createVoiceClient } from 'dsh-voice-core'

var voiceClient = createVoiceClient({
  presetName: 'teacher',
  ttsPath: '/dsh-teacher/tts',
  styles: { onee: { label: '🎧 清冷御姐', instruct: '…' } },
  defaultStyle: 'onee',
})
// 在 apply 里:voiceClient.apply(ctx)