mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-23 00:35:51 +00:00
17 lines
450 B
TypeScript
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
|