Control Emacs with voice commands using whisper.el and phony.el

Using Sacha Chua's fork of whisper.el and phony.el to contol Emacs with voice commands.


The whisper.el package allows you to use whisper-cpp to dictate text with your voice
and have it transcribed and entered into the buffer, Sacha for allows you to create voice commands to contol Emacs

The phony.el package allows you to define voice commands to call Emacs function,
either built in function or ones you have defined

In this video i cover setting up the whisper-server with rnnoise for noise reduction,
and ffmpeg with a noise gate, compressor and limiter to improve the audio quality.

How to clone Sacha's forks of whisper.el and phony.el and use load-path with use package
to point to the git repositories, creating an overlay to insert the recoring icons into the buffer.

Set the whisper recording directory, create a hydra that brings up a menu
and lets you select either dictation mode to dictate text or command mode to use voice commands.

Creating a voice commands side bar listing all the voice commands with a description.

Then i cover creating functions with phony.el to define voice commands
including the following

- save buffer
- kill buffer
- deleting windows
- deleting lines and words
- open file
- go to line
- scrolling
- spell check words or the buffer
- look up dictionary definations
- inserting heading and subheadings
- narrowing and widening
- editing and exiting source code blocks
- tangling source blocks or files
- switching and moving tabs
- git commit with magit
- selecting elements

and how to create corrections for voice commands


Sacha Chua's fork of whisper.el

Sacha Chua's fork of phony.el

Sacha Chua's emacs config


emacs init.el

voice commands hydra

phony and whisper

phony-speech-commands.el


Building whisper-cpp with vulkan support on Freebsd

Freebsd dotfiles

Freebsd root dotfiles
 
Back
Top