Skip to content

silvabyte/audetic.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

audetic.nvim

Voice-triggered AI coding assistance for Neovim.

Speak your intent, and let AI make the changes. No typing required.

How It Works

  1. Press <leader>r to start recording
  2. Speak your command (e.g., "add error handling to this function", "rename this variable to userCount")
  3. Press <leader>r again to stop
  4. Watch as the AI executes your command on the current buffer

Requirements

Install

lazy.nvim

return {
  "silvabyte/audetic.nvim",
  event = "VeryLazy",
  opts = {
    model = {
      provider = "anthropic",
      model_id = "claude-haiku-4-5",
    },
    voice = {
      keybind = "<leader>r",  -- Push-to-talk
    },
  },
}

Run :checkhealth audetic to verify your setup.

Configuration

require("audetic").setup({
  server = {
    url = nil,           -- nil = auto-start server
    port = nil,          -- nil = auto-allocate free port
    auto_start = true,
    timeout = 15000,     -- request timeout (ms)
  },
  model = {
    provider = "anthropic",
    model_id = "claude-haiku-4-5",
  },
  voice = {
    enabled = true,
    keybind = "<leader>r",
  },
  ui = {
    window_width = 50,      -- feedback window width
    window_max_height = 10, -- feedback window max height
    max_event_log = 50,     -- max messages in chat log
    success_duration = 2000,
    error_duration = 4000,
  },
})

All options shown are defaults.

Keybindings

Key Action
<leader>r Start/stop voice recording

Commands

Command Description
:AudeticToggle Toggle voice recording
:AudeticCancel Cancel active voice operation
:AudeticStatus Show current voice state

Statusline

Add voice status to your statusline:

-- lualine example
sections = {
  lualine_x = {
    { require("audetic").statusline },
  },
}

Status indicators:

  • [REC] - Recording
  • [...] - Processing transcription
  • [AI] - AI executing command

Starting Audetic

Before using voice commands, start the Audetic service:

audetic

Audetic runs as a background service on http://127.0.0.1:3737.

Debug Mode

Enable debug logging:

vim.g.audetic_debug = true

View logs with :messages.

License

MIT

About

Voice-triggered AI coding assistance for Neovim

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages