Files
claude-code/src/commands/voice/index.ts
2026-05-01 21:39:30 +08:00

17 lines
450 B
TypeScript

import type { Command } from '../../commands.js'
import { isVoiceAvailable } from '../../voice/voiceModeEnabled.js'
const voice = {
type: 'local',
name: 'voice',
description: 'Toggle voice mode. Use /voice doubao for Doubao ASR backend',
isEnabled: () => isVoiceAvailable(),
get isHidden() {
return !isVoiceAvailable()
},
supportsNonInteractive: false,
load: () => import('./voice.js'),
} satisfies Command
export default voice