Skip to content

Voice

Base classes

Name Children Inherits
ClaudeCodeBaseModel
clawd_code_sdk.models.base
Base model for all Claude Code Pydantic models.

⋔ Inheritance diagram

graph TD
  1815362896["settings.Voice"]
  2604142835["base.ClaudeCodeBaseModel"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  2604142835 --> 1815362896
  3879467795 --> 2604142835
  2751680898 --> 3879467795

🛈 DocStrings

Bases: ClaudeCodeBaseModel

Voice dictation settings: enabled turns dictation on, mode selects "hold" or "tap", and autoSubmit sends the prompt on key release in hold mode. Written automatically when you run /voice. Requires a Claude.ai account. See https://code.claude.com/docs/en/voice-dictation.

Source code in src/clawd_code_sdk/models/settings.py
class Voice(ClaudeCodeBaseModel):
    """Voice dictation settings: enabled turns dictation on, mode selects "hold" or "tap", and autoSubmit sends the prompt on key release in hold mode. Written automatically when you run /voice. Requires a Claude.ai account. See https://code.claude.com/docs/en/voice-dictation."""

    model_config = ConfigDict(
        extra="forbid",
    )
    enabled: bool | None = None
    """
    Enable push-to-talk voice dictation input
    """
    mode: Literal["hold", "tap"] | None = None
    """
    Recording mode: "hold" (default) is push-to-talk; "tap" taps once to start and again to stop and submit
    """
    auto_submit: bool | None = Field(None, alias="autoSubmit")
    """
    In hold mode, auto-submit the prompt on key release when the transcript is at least three words long
    """

auto_submit class-attribute instance-attribute

auto_submit: bool | None = Field(None, alias='autoSubmit')

In hold mode, auto-submit the prompt on key release when the transcript is at least three words long

enabled class-attribute instance-attribute

enabled: bool | None = None

Enable push-to-talk voice dictation input

mode class-attribute instance-attribute

mode: Literal['hold', 'tap'] | None = None

Recording mode: "hold" (default) is push-to-talk; "tap" taps once to start and again to stop and submit

:fa-brands-github: Show source on GitHub