Categories: geek

RSS - Atom - Subscribe via email

Typing + voice, voice + typing; dual-channel awesomeness with Emacs

| emacs, speech-recognition

This post is for five types of people:

  • The tiny group ofq Emacs users exploring dictation and voice control: let's bounce ideas around and see how far we can take this
  • Emacs users who are curious about speech: there are plenty of non-Emacs dictation tools like OpenWhispr and Superwhisper, but it might be worth the effort to make Emacs the center of your speech workflow
  • People who use dictation and voice control with other editors (Cursorless on VS Code, etc.): borrow ideas and share what you've come up with
  • People who haven't checked on the state of local speech recognition and who might be pleasantly surprised by what it can do these days
  • Me, so I can think about the things I want to experiment with and prioritize what I want to squeeze into these last two weeks before EmacsConf (aaah!)

Dictation is a tap away on Windows and macOS. If you're on Linux or if you're looking for something other than whatever's built into the operating system, tools like OpenWhispr are easy to install. Different Linux distros are working on integrating dictation: Omarchy has Superwhisper, Ubuntu is working on dictation with Project Myna. OpenAI, Claude, and Gemini all have conversational interfaces so you can chat with a large language model. Most of the tools I've seen start with dictation. Some tools offer LLM-based rewriting to clean up filler words and false starts. You can edit, reformat, translate, and revise. Tools like Dragon and Talon Voice offer voice control and integrate into more applications.

There are any number of providers that would happily sell you a subscription for a dictation service with a cool demo, but you can get surprisingly decent results from free open-weight models that you can run on your own computer without a GPU and without cloud processing. I use sachac/whisper.el and phony with orukeet on a Lenovo P52 laptop (entirely on my CPU) from 2018. I use Kokoro for speech synthesis. Sometimes I toggle speech recognition on and off with a keystroke, sometimes I switch between command and dictation mode, and sometimes I just leave it running in the background, using Silero voice activity detection to segment it by silences. It does reasonably well. If you're philosophically opposed to large language models trained in massive data centers on enormous quantities of scraped data, you are not cut out of this game either. If you're open to more classical approaches like Vosk or CMU Sphinx, you might still be able to get voice control with a set of commands.

I've been experimenting with Emacs as the core of my speech recognition system. You might be wondering what a 50-year-old text editing program has to do with speech recognition. It's probably the most programmable piece of software around. Over the years, people have built so much on top of it. People have added task managers, note archives, email clients, web browsers, media players, and more. I think it offers some interesting possibilities that other people might not have much of an opportunity to explore. There are a bunch of us now experimenting with this, and before our meetup tomorrow, I wanted to think through the topic so that I can come up with more ideas based on things that are working well and share what I've been learning with other people.

There are three main topics I want to explore that might be at a bit of an interesting distance from the typical kinds of dictation that other tools offer:

  • No silos: taking advantage of what Emacs can offer
  • Typing + voice: using voice as an additional channel
  • Voice + other methods: capturing, editing and restructuring ideas

No silos

One of the things I love about doing my speech recognition through Emacs is that it can take advantage of all the data and functionality that I already have. Here are some examples of how effective it is when you don't have to deal with different applications for different features.

Correction

Speech recognition isn't 100% accurate. A good speech recognition tool makes it easy to define a dictionary that influences how words get recognized. For example, I refer to "Emacs" far more often than I refer to "IMAX." I don't want to define this dictionary multiple times for dictation and spell checking and other things that I need to do with text. I want to fix misrecognized words once and have that available everywhere: when I'm dictating to my computer, when I'm automatically transcribing recordings from my phone, when I'm editing the transcripts of other people's presentations.

Bookmarks

I want to be able to open bookmarks quickly. I can use "open …" to open one of my favourites in the foreground, and "background open …" to open it without changing focus. I can use "web scroll" to scroll the browser window without shifting to it, and I can click with "web click …". I can configure some links to open in Firefox and some links to open in Chrome. This uses a list of favourites that I can also use when writing blog posts, Markdown, Mastodon toots, and e-mails. I can insert a link with completion. I can even select some plain text (ex: "EasyEffects") and use my keyboard shortcut to automatically link it to the matching favourite. I can save a link right from my blog post drafts with sacha-org-favorite-save-link. And I'm not limited to websites. I can run any kind of code or custom link through the same mechanism. For example, I can say "open schedule draft" to open the draft schedule for this year's EmacsConf as an Org mode file and an SVG. I don't have to manage different stores of data.

Integration

My voice commands have access to anything my Emacs has access to, which is a lot. When I tell my computer to take a note or add a task, it can put it in the same Org mode file that's part of my daily routines. When I'm trying to resynchronize audio and video in a recording, I can use "from the top" to restart the video player and jump to the first subtitle that I've narrowed my focus on.

Malleability

It's super easy to tweak my speech recognition system. I can add new commands, change their behaviour, or debug their internals on the fly.

Typing + voice

I still type my code. I haven't quite gotten the hang of hands-free coding yet, although a lot of people with repetitive stress injuries have figured out things that work really well for them like Emacslisten or Cursorless.

Voice gives me an additional channel that I can use to keep my fingers and my focus on one thing, while offloading the inevitable distractions to something else that can keep track of it for me. When I'm typing some code and an idea occurs to me, I can say "remind me next week to …" and the audio feedback reassures me that it's saved and I don't need to let it occupy my brain. When I'm stuck because I need to look something up, I can say "look up …" and my browser searches it for me in the background without stealing my focus. I love being able to say "let's go live" to start streaming on YouTube and "over and out" to stop streaming, even when OBS is buried under other windows on my laptop screen.

I like using voice commands to create natural shortcuts for the things that I don't do frequently enough to dedicate and memorize a keyboard shortcut for. It feels natural to use voice to expand snippets and call commands.

When I'm trying to figure out a bug or I'm thinking through a new feature, I can talk out loud and do some rubber ducking, and the notes are there so that I can go back over them later. Misrecognized words are not a problem because if I capture enough context for myself, I can usually figure it out, and I have the recording that I can go back to. When I get interrupted, my notes are there to help me pick things up again. For this, it really helps to be able to dictate somewhere other than at my cursor, and to integrate into all the other things that I do.

I prefer using a deterministic grammar to figure out my voice commands so that I have a better sense of what's going to happen. It's also pretty fast, and I can do everything locally.

I think this group of ideas is about offloading things using a secondary channel so that I can keep thinking about something without having to make a context switch. Voice is great for that because I don't even have to move my fingers or rearrange my windows.

For coding, it should be pretty straightforward to add some voice commands that reload the web page or rerun the last test. I should also be able to come up with commands to arrange my windows the way I want them. I just haven't gotten around to implementing those yet, but I've saved the TODOs so that I can focus on getting this post out the door.

Voice + typing and other methods

When I'm writing a blog post like this, it's pretty natural to use dictation because there aren't that many weird things that are hard to say. I type at about 100 words per minute. I talk at about 210 wpm if I'm doing a full-on info dump. I'm much slower at either when I actually have to think about what I want to say. (I dictated+typed this post at about 26 words per minute.) Talking helps me get the gist of the idea out of my brain before I can forget it. I also like how, when I'm streaming or recording a video, having dictation means that I don't have to explain things out loud and try to type at the same time. These are pretty normal benefits that you can get with whatever dictation tool you choose, so let's go into some of the more Emacs-y things.

For writing, I find myself shifting to getting the bulk of the ideas in through dictation rather than typing. I still prefer to edit my own text instead of having a large language model rewrite it for me. Here, Emacs's strengths as a proper text editor really come into play. Org mode makes it so easy to manage text. I've set up my dictation so that it's automatically split up into one sentence per line. This makes each sentence easy to scan. In an Org mode list, my dictation switches to automatically inserting new list items at the same level. In a comment, it continues the comment. Org mode shortcuts make it easy to move sentences and paragraphs around, reorganize lists, and move entire subtrees. I can change between lists and paragraphs, between paragraphs and one sentence per line, and between comments and code.

I can separate my voice cursor from my typing cursor with a command like "voice mark", which tells the computer where I want new text to go in. ("Voice clear" resets it.) Then I can use the keyboard to move around and do some edits at the same time. I can even switch to a different file to grab a link or copy some text.

Voice is also handy for switching things from one medium or another. For example, I start many of my blog posts as sketch notes, and voice lets me flesh out the idea in the process of getting it into my computer as a draft. It does take a little bit of correction, but so would optical character recognition, even with an AI.

Having the ability to shift back and forth between voice and typing means that I can do other things with my hands. I have some fidget toys and a 5-pound weight near my laptop. I can stand up and stretch. It's nice to have more flexibility.

I'm still practising formulating my sentence all the way through before saying it, or at least speaking in more comprehensible chunks. I often have lots of pauses and false starts. Speaking more fluidly is a good life skill though, and it'll help me with making videos and talking to other people too.

I think this group of ideas is about using voice as an input method and finding better ways to work with the raw material. I'm thinking about voice commands that I might like to use for editing. A number of other people have already started experimenting with those, like cursorfree and earwig. I think it's mostly a matter of picking the commands that I want and getting the hang of using them. I'm also curious about using voice to sort ideas into different piles. Like the way that I categorize lots of links for Emacs news every week. I experimented with using voice for categorizing those before, and I think it might be possible to generalize it so that I can write in a less linear way. I can imagine brain dumping a whole bunch of points and then grouping them into the introduction, different supporting areas, and the conclusion.

Wrapping up

People are already finding basic dictation useful, and voice control is also pretty mature. I'm curious about the stuff that doesn't scale, the things you can build when you have a super personalized setup where you aren't limited to a small set of features that the developers have anticipated. My setup is nowhere near mass market. I'm amazed that a few people have actually been able to scavenge enough from it to get things running on their systems.

None of these things are really revolutionary. They're probably not even really good reasons to switch to Emacs if you're already comfortable with something else like Neovim or VS Code. But I love being able to make these tiny tweaks to the way I work with my computer, and given my experience with Emacs, I know they'll accumulate. I'm looking forward to seeing what we can figure out together.

View Org source for this post

EmacsConf: Resynchronizing audio and video using Emacs and subed-record

| emacs, subed

Pedro Aranda and Roger Schurch used our instance of BigBlueButton to record their upcoming presentation about accessible PDFs with ltx-talk for EmacsConf 2026. I had configured it to export a single-file .webm for easier downloading and playback. After their video finished processing, I downloaded it and I ran WhisperX with diarization on the video file. I trimed the beginning and the ending to remove some extra bits.

While reviewing the transcript and adding chapter markers (using sacha-subed-mpv-ocr-and-select-line-as-comment), I noticed that the audio and video tracks from BigBlueButton kept drifting apart throughout the video. I'm not entirely sure why. Even the original had these synchronization issues.

The desync bothered me enough that I wanted to sort it out. I could get the separate .webms for the audio, screenshare, and webcams, but their durations differed too, so I'd probably still need to figure out the offsets. I decided to work with the combined webm instead. I just needed to figure out the delays to add to the audio file to get it to match up. I'm not used to staring at people's faces trying to read their lips, but I'd had some practice when I corrected the offsets for the Emacs community panel. That one is public. Now my process is:

  1. Jump to a speaker change, since that's usually when the timestamps drift.
  2. In MPV, use C-+ or C-- somewhat randomly until I happen across a setting that lined it up. I think it's + to add a delay to the audio, which is needed when the audio says the words first and then the video follows. - is for when the video is ahead of the audio. MPV displays the offset when I change it, and I can also use I to display the stats.
  3. Once I've gotten things mostly synced, skim backwards until I find the end of the previous segment where the offset needs to be different.
  4. Add the value as #+AV_OFFSET: directive in a comment in my VTT file. Ex:

       00:05:08.004 --> 00:05:11.531
       our teaching materials.
    
       NOTE #+AV_OFFSET: 600
    
       00:05:11.532 --> 00:05:14.353
       [Pedro]: And here in Europe we do have a
    
  5. Test it by selecting a region with a few subtitles and using subed-record-compile-video to check it. I used or mpv --loop-file=inf to loop over the full clip.
  6. Test the audio file for the whole video without regenerating the video part: mpv video-file.webm --audio-file=test.webm
  7. Combine the new audio track with the video using ffmpeg, or regenerate the whole video with subed-record-compile-video.

Here are the offsets I came up with:

Offset Start time End time
-200 00:00:14.560 00:02:18.840
300 00:02:18.841 00:05:11.531
600 00:05:11.532 00:06:05.532
500 00:06:05.533 00:10:11.660
800 00:10:11.661 00:11:00.559
1000 00:11:00.560 00:13:17.451
1800 00:13:17.452 00:16:06.940
2500 00:16:06.941 00:18:16.704
3000 00:18:16.705 00:22:12.559
3600 00:22:12.560 00:26:31.406
3900 00:26:31.407 end

I'm not entirely sure that I've gotten the offsets nailed down yet, but they're better than the original. Once the talk airs on Dec 12, you'll get to see the results at https://emacsconf.org/2026/talks/ltx-talk/ .

So now I have a workflow for resynchronizing audio and video using Emacs. I really liked being able to navigate the video by using the transcript. It was easy to find the next speaker change to examine closely. I liked not having to do lots of fiddly little splits on my clips, particularly since I often found myself needing to move the offset a little earlier or later.

My next steps are probably:

  • modify compile-media.el to handle :av-offset for both open and closed captions
  • modify subed-mpv to handle jumping to the right place
  • modify subed-waveform to take the offset into account when displaying the waveform

Yay editing videos by using plain text!

View Org source for this post

Emacs: Join lines even in comments

| emacs

I like to dictate one sentence per line. My voice activity detection sometimes adds extra breaks in between lines if I pause too much in the middle of a sentence. sacha-whisper-insert takes care of inserting the comment markers using comment-indent-new-line. After I edit my dictation, I usually want to make the comments more compact. The following function overrides delete-indentation so that join-line and fill-paragraph all manage the common prefix properly, which means sacha-reformat-paragraph-or-region can cycle through wrapped, one line per sentence, or everything on one line.

From Smartly join comments with join-line · Tony Zorman

;;;###autoload
(defun sacha-delete-indentation (&optional arg beg end)
  "Join this line to previous and fix up whitespace at join.
If there is a fill prefix, delete it from the beginning of this
line.
With prefix ARG, join the current line to the following line.
When BEG and END are non-nil, join all lines in the region they
define.  Interactively, BEG and END are, respectively, the start
and end of the region if it is active, else nil.  (The region is
ignored if prefix ARG is given.)

When joining lines, smartly delete comment beginnings, such that one
does not have to do this by oneself.

From https://tony-zorman.com/posts/join-lines-comments.html"
  (interactive
   (progn (barf-if-buffer-read-only)
          (cons current-prefix-arg
                (and (use-region-p)
                     (list (region-beginning) (region-end))))))
  ;; Consistently deactivate mark even when no text is changed.
  (setq deactivate-mark t)
  (if (and beg (not arg))
      ;; Region is active.  Go to END, but only if region spans
      ;; multiple lines.
      (and (goto-char beg)
           (> end (line-end-position))
           (goto-char end))
    ;; Region is inactive.  Set a loop sentinel
    ;; (subtracting 1 in order to compare less than BOB).
    (setq beg (1- (line-beginning-position (and arg 2))))
    (when arg (forward-line)))
  (let* ((comment (string-trim-right comment-start))
         (prefix-start (and (> (length comment-start) 0)
                            (regexp-quote comment)))
         ;; A continuation of a comment. This is important for
         ;; languages such as Haskell, where -- starts a comment
         ;; and --- still is one.
         (prefix-cont (and prefix-start
                           (regexp-quote (substring comment 0 1))))
         (prev-comment?                 ; Comment on previous line?
          (save-excursion
            (forward-line -1)
            (back-to-indentation)
            (search-forward prefix-start (pos-eol) 'no-error))))
    (while (and (> (line-beginning-position) beg)
                (forward-line 0)
                (= (preceding-char) ?\n))
      (delete-char -1)
      (unless (save-excursion (forward-line -1) (eolp))
        (delete-horizontal-space)
        ;; Delete the start of a comment once.
        (when (and prev-comment? prefix-start (looking-at prefix-start))
          (replace-match "" t t)
          ;; Look for continuations.
          (while (and prefix-cont (looking-at prefix-cont))
            (replace-match "" t t)))
        (fixup-whitespace)))))

Let's use advice to override it so that it lasts even if I reevaluate the original.

(advice-add 'delete-indentation :override #'sacha-delete-indentation)
This is part of my EmacsConfiguration.
View Org source for this post

Fixing commonly-misrecognized words in dictation, voice commands, and regular text

| audio, subed, emacs, speech-recognition

I edit a lot of transcripts, and I've also been dictating to my computer more and more for both prose and voice commands. Speech recognition is pretty accurate, but there are some terms that it tends to get wrong. There are also some terms that I find hard to say, like sometimes my brain will just hiccup and I'll end up saying "start screaming" instead of "start streaming". I want to make it really easy to correct a misrecognized word throughout my current buffer and save it for future edits.

One of the advantages of doing this kind of replacement within Emacs instead of a separate dictation tool is that I can use it for both editing text (like transcripts of other people's presentations) as well as pre-process the speech recognition results when I dictate or use voice commands to control Emacs. I can even use it to start gradually getting my transcripts to follow Emacs keybinding conventions, like C-c instead of "control c", and for finicky capitalization like LaTeX.

1. Description and demo

You can watch a description and a demo here. The dictionary part starts at about 00:37:01.403.

Full video and transcript

Or as a YouTube short: Emacs Speech-to-Text That Learns From Its Mistakes - Sacha Chua - YouTube.

2. Saving the dictionary

First, we define a variable that we're going to save the changes to.

;; Use the saved version of this instead of forcing the reevaluation
;;;###autoload
(defcustom sacha-subed-common-edits
  '("I"
    "I've"
    "I'm"
    "Mendeley"
    "JavaScript"
    "RSS"
    ("stop section" "subsection")
    ("EmacsConf" "EmacsCon" "EmacsConf" "imaxconf")
    ("going to" "gonna")
    ("want to" "wanna")
    ("transient" "transit")
    ("C-c" "control c" "Ctrl+C")
    ("C-x" "control x" "Ctrl+X")
    ("C-f" "control f")
    ("" "uh" "um")
    ("Magit" "maggot")
    ("Emacs" "e-max" "emex" "emax" "bmx" "imax")
    ("Emacs News" "emacs news")
    ("Emacs Lisp" "emacs list")
    ("ivy" "iv")
    ("UI" "ui")
    ("TECO" "tico")
    ("org-roam" "orgrim" "orgrom" "Org Rome")
    ("non-nil" "non-nail")
    ("commits" "comets")
    "SQL"
    "arXiv"
    "Montessori"
    "SVG"
    "YouTube" "GitHub" "GitLab" "OmegaT" "Linux" "SourceForge"
    "LaTeX"
    "Lisp"
    "Org"
    "IRC"
    "Reddit"
    "PowerPoint"
    "SQLite"
    "SQL"
    "I'll"
    ("<f9>" "F-9" "f9")
    "I'd"
    "PDFs"
    "PDF"
    "ASCII"
    ("Spacemacs" "spacemax")
    "Elisp"
    "Reddit"
    "TextMate"
    "macOS"
    "API"
    "IntelliSense"
    ("EXWM" "axwm")
    ("Emacs's" "emax's")
    ("BIDI" "bd")
    ("Perso-Arabic" "personal arabic")
    "Persian"
    "URL"
    "HTML"
    ("vdo.ninja" "Video Ninja"))
  "Commonly-misrecognized words or words that need special capitalization."
  :group 'sachac
  :type '(repeat (choice string
                         (repeat string))))

3. Making changes with substitute.el

I like using Prot's substitute.el. I bind substitute-target-in-buffer to C-; . I can either replace the current word or select a couple of words if I think I need to be more specific. I ignore "SPEAKER_…" because then I can use the same shortcut to easily change speaker identification in transcripts.

(defvar sacha-substitute-save-changes "SPEAKER_"
  "Non-nil means save changes to `sacha-subed-common-edits'.
If this is a string, it is treated as a regular expression, and only
strings that do NOT match this regular expression will get saved.
If this is a function, call it with the target string. It should return
non-nil if the substitution should be saved.")

(defun sacha-substitute-save-common-edits (target sub count scope)
  "Keep track of changes so I can add them to `sacha-subed-common-edits'."
  (when (cond
         ((functionp sacha-substitute-save-changes)
          (funcall sacha-substitute-save-changes target))
         ((stringp sacha-substitute-save-changes)
          (not (string-match sacha-substitute-save-changes target)))
         (t
          sacha-substitute-save-changes))
    (customize-save-variable
     'sacha-subed-common-edits
     (cons (list sub target)
           sacha-subed-common-edits))))
(use-package substitute
:bind ("C-;" . substitute-target-in-buffer)
      :config
      (setq substitute-fixed-letter-case t)
      (add-hook 'substitute-post-replace-functions #'substitute-report-operation)
      (add-hook 'substitute-post-replace-functions #'sacha-substitute-save-common-edits))

customize-save-variable is in charge of saving the changes after I replace something with susbtitute.el. If I want to remove or edit entries, I can use M-x customize-variable to change sacha-subed-common-edits.

4. Correcting the errors

Then I have some functions that make the changes automatically or interactively.

;;;###autoload
(defun sacha-subed-fix-common-errors ()
  (interactive )
  (let (done entry correction)
    (while (and
            (not done)
            (setq entry (sacha-subed-find-next-fix-point)))
      (setq correction (if (listp entry) (car entry) entry))
      (if (let ((case-fold-search nil))
            (looking-at (regexp-quote correction)))
          (forward-word 1)
        (if (called-interactively-p 'any)
            (let* ((c (read-char (format "%s (yn.): " correction))))
              (cond
               ((= c ?y) (replace-match correction t t))
               ((= c ?n) (goto-char (match-end 0)))
               ((= c ?j) (subed-mpv-jump-to-current-subtitle))
               ((= c ?.) (setq done t))))
          (replace-match correction t t))))))

;;;###autoload
(defun sacha-subed-fix-common-errors-from-start ()
  "Change common errors in this buffer."
  (interactive)
  (goto-char (point-min))
  (sacha-subed-fix-common-errors))

;;;###autoload
(defun sacha-subed-fix-common-errors-in-text (text)
  "Change common errors in TEXT."
  (interactive)
  (with-temp-buffer
    (insert text)
    (goto-char (point-min))
    (sacha-subed-fix-common-errors)
    (buffer-string)))

;;;###autoload
(defun sacha-subed-find-next-fix-point ()
  (when (re-search-forward
         (format "\\_<\\(%s\\)\\_>"
                 (downcase
                  (string-join
                   (seq-mapcat
                    (lambda (o)
                      (if (listp o)
                          (if (string= (car o) "") (cdr o) o)
                        (list o)))
                    sacha-subed-common-edits)
                   "\\|")))
         nil t)
    (goto-char (match-beginning 0))
    (seq-find
     (lambda (o)
       (if (listp o)
           (seq-find (lambda (s)
                       (save-match-data
                         (string-match
                          (format "\\_<%s\\>" (downcase s))
                          (downcase (match-string 0))))) o)
         (string= (downcase o) (downcase (match-string 0)))))
     sacha-subed-common-edits)))

;;;###autoload
(defun sacha-subed-fix-common-error ()
  (interactive)
  (let ((entry (sacha-subed-find-next-fix-point)))
    (replace-match (if (listp entry) (car entry) entry) t t)))

Then I can call sacha-subedf-fix-common-errors-in-text from my whisper-insert-text-at-point functions, and sacha-subed-fix-common-errors-from-start from sacha-stream-prepare-transcript-for-editing.

5. Other ways to define the correction

Here's another function to define a correction if you don't want to use substitute.el.

;;;###autoload
(defun sacha-subed-add-common-edit (beg end replacement)
  "Add this word to the misrecognized words."
  (interactive
   (let ((beg (if (region-active-p) (min (point) (mark))
                (skip-syntax-backward "w")
                (point)))
         (end (if (region-active-p) (max (point) (mark))
                (save-excursion (forward-word 1) (point)))))
     (list beg end
           (completing-read
            (format "Replacement (%s): " (buffer-substring beg end))
            (mapcar (lambda (o) (if (stringp o) o (car o))) sacha-subed-common-edits)))))
  (customize-set-variable
   'sacha-subed-common-edits
   (cond
    ((member replacement sacha-subed-common-edits)
     (cons (list replacement (buffer-substring-no-properties beg end))
           (delete replacement sacha-subed-common-edits)))
    ((assoc replacement sacha-subed-common-edits)
     (setcdr (assoc replacement sacha-subed-common-edits)
             (append (list replacement) (cdr (assoc replacement sacha-subed-common-edits))))
     sacha-subed-common-edits)
    (t
     (push (list replacement (buffer-substring-no-properties beg end))
           sacha-subed-common-edits))))
  (delete-region beg end)
  (insert replacement))

At some point, I really should abstract this out to its own package, because it's just so useful. Other people have actually managed to get it to work, which is always a nice milestone. Anyway, here it is, in case it's helpful for you too!

This is part of my EmacsConfiguration.
View Org source for this post

2026-11-23 Emacs news

| emacs, emacs-news

: Fixed link to nfdn: Opening Texinfo Web Pages in Emacs Info

I really liked two things in this week's newsletter. First, Ihor Radchenko has posted his talk on task management, Which he prepared for EmacsConf 2026, coming up this Dec 12 and 13. He's okay with posting it early so that people can start thinking about the ideas in advance and make the most of the live Q&A during the conference itself, so check out how he deals with tens of thousands of items. Similarly, the panel that he organized on Emacs community is now public, so you can take a look at it too. That one is a long one, and I'd love to hear your thoughts.

The second thing that I thought was really fun was Ethermacs, which uses web sockets for synchronous editing, so now people who aren't using Emacs and people who are can still edit the same Etherpad together. (And using Emacs means no JavaScript needed, which is good news for our non-JS community members!) And after a little bit of tweaking, I've been able to use it to edit the etherpads that we have for EmacsConf. Whee!

(You might be able to tell that I have EmacsConf on the brain. =) )

Links from reddit.com/r/emacs, r/orgmode, r/spacemacs, Mastodon #emacs, Bluesky #emacs, Hacker News, lobste.rs, programming.dev, lemmy.world, lemmy.ml, planet.emacslife.com, YouTube, the Emacs NEWS file, Emacs Calendar, and emacs-devel. Thanks to Andrés Ramírez for emacs-devel links. Do you have an Emacs-related link or announcement? Please e-mail me at sacha@sachachua.com. Thank you!

View Org source for this post

2026-11-16 Emacs news

Posted: - Modified: | emacs, emacs-news

: Added OrgDevMeetup on Nov 21

I liked reading the Emacs Carnival posts about how people discover new features and what things they've tried lately. Feel free to share your story.

Also, the Emacs 31.1.90 pretest is available (note Irreal's post about typos). Please help test it if you can!

Links from reddit.com/r/emacs, r/orgmode, r/spacemacs, Mastodon #emacs, Bluesky #emacs, Hacker News, lobste.rs, programming.dev, lemmy.world, lemmy.ml, planet.emacslife.com, YouTube, the Emacs NEWS file, Emacs Calendar, and emacs-devel. Thanks to Andrés Ramírez for emacs-devel links. Do you have an Emacs-related link or announcement? Please e-mail me at sacha@sachachua.com. Thank you!

View Org source for this post

EmacsConf: recording and re-recording introductions

| emacs, emacsconf, subed

I record brief introductions for all the EmacsConf talks so that they can be played automatically. That way, hosts don't have to worry about pronunciations on air, and there's one less changeover that might introduce technical issues. We can cut to the next talk a bit abruptly because everything runs off a crontab-powered schedule to keep things running on time on multiple tracks, so it helps to have a little transition between Q&A and the next talk. It's also nice having some kind of pronunciation reference so that when people discuss the talks or even just think about them with their internal monologues, they might have a better sense of how to say the speakers' names. We ask speakers to say their names at the beginning of their presentation, but people don't often include their last names, so the intro gets that consistently. The intro videos are available on the talk pages after the conference, and I've occasionally used them to remember how someone's name is pronounced.

Here's an example intro from EmacsConf 2025:

Here's my process for preparing those intros with Emacs.

First, I create all the intro slides with LaTeX and TikZ using the function emacsconf-stream-generate-in-between-pages from emacsconf-stream.el. This year, the template I'm using is _template.tex and the background image is _template_bg.pdf. I used to use an SVG and just replace the elements within it (template.svg, emacsconf-stream-generate-in-between-page-svg). This year, some of the talk titles are very long and SVG doesn't have widespread support for wrapping. LaTeX handles wrapping and positioning beautifully. This even allows me to have ligatures like the "ff" in Jeff Trull's name. I noticed those ligatures disappeared when I used Inkscape to convert to PNG, so I needed this command instead: inkscape --pdf-poppler --export-type=png -w 1280 -h 720 --export-background-opacity=0 --export-text-to-path

This is the function that generates the individual intro slide:

emacsconf-stream-generate-in-between-page: Use LaTeX to generate the intro slide for TALK based on assets/in-between/_template.tex.
(defun emacsconf-stream-generate-in-between-page (talk &optional prev info force)
  "Use LaTeX to generate the intro slide for TALK based on assets/in-between/_template.tex."
  (interactive (list (emacsconf-complete-talk-info)))
  (let* ((prev (or prev (emacsconf-previous-talk talk info)))
         (dir (expand-file-name "in-between" emacsconf-stream-asset-dir))
         (template
          (with-temp-buffer
            (insert-file-contents
             (expand-file-name "_template.tex" dir))
            (buffer-string)))
         (default-directory dir))
    (write-region
     (emacsconf-replace-plist-in-string
      (list
       :current-title
       (or (plist-get talk :title) "")
       :current-speakers
       (or (plist-get talk :speakers) "")
       :current-details
       (format "%s\\\\\n%s"
               (or (plist-get talk :absolute-url) "")
               (pcase (plist-get talk :q-and-a)
                 ((rx "live") "Live Q\\&A after talk")
                 ((rx "pad") "Etherpad")
                 ((rx "IRC") "IRC Q\\&A after talk")
                 (_ "")))
       :previous-title
       (or (plist-get prev :title) "")
       :conf-name emacsconf-name
       :conf-year emacsconf-year
       :previous-speakers
       (or (plist-get prev :speakers) "")
       :previous-details
       (format "%s\\\\\n%s"
               (or (plist-get prev :absolute-url) "")
               (pcase (plist-get prev :q-and-a)
                 ((rx "live") "Live Q\\&A after talk")
                 ((rx "pad") "Etherpad")
                 ((rx "IRC") "IRC Q\\&A after talk")
                 (_ ""))))
      template)
     nil
     (expand-file-name (concat (plist-get talk :slug) ".tex") dir))
    (shell-command
     (format "lualatex -shell-escape %s && inkscape --pdf-poppler --export-type=png -w 1280 -h 720 --export-background-opacity=0 --export-text-to-path %s"
             (expand-file-name (concat (plist-get talk :slug) ".tex")
                               dir)
             (expand-file-name (concat (plist-get talk :slug) ".pdf")
                               dir)))))

and here's an example slide it creates:

listen.png

Once I had the intro slides, I prepared my script. I called emacsconf-subed-intro-subtitles from emacsconf-subed.el to create a VTT captions file that starts like this:

WEBVTT


NOTE
#+OUTPUT: emacsconf-2026-sat-open--saturday-opening-remarks--sacha-chua--intro.webm
[[file:/home/sacha/proj/emacsconf/2026/assets/in-between/sat-open.png]]

00:00:00.000 --> 00:00:00.000
Next, we have "Saturday opening remarks",
by Sacha Chua.
You can ask questions via Etherpad.

NOTE
#+OUTPUT: emacsconf-2026-planning--the-emacs-planning-habits-of-a-questionably-effective-person-my-40year-journey-of-planning-with-emacs-org-mode-paper-journals-etc--george-jones--intro.webm
[[file:/home/sacha/proj/emacsconf/2026/assets/in-between/planning.png]]

00:00:00.000 --> 00:00:00.000
Next, we have "The Emacs Planning Habits of a Questionably Effective Person: My 40-year journey of planning with Emacs, Org Mode, paper journals, etc.",
by George Jones.
You can ask questions via web conference by joining from the talk page
or ask questions through Etherpad or IRC.

The text is based on the Org entry properties for each talk in our conf.org file. It used subed-record directives to define the output files and the visuals.

Then I used subed-record to start recording each segment. I pressed <left> (subed-record-retry) to re-record a segment as many times as I needed to. This adds or updates an #+AUDIO directive that points to the current recording and it also updates the timestamps. When I was satisfied, I pressed <right> (subed-record-accept-segment) to update the ending timestamp and move on to the next segment to record. Whenever I needed to take a break from recording, I used RET (subed-record-accept-and-stop) to accept the last segment and stop. After recording, I used subed-waveform-show-all to see the waveforms for each segment. I left- and right-clicked on the waveforms to refine the start and end timestamp, getting rid of the sound from the keyboard shortcuts, and I used subed-split-subtitle to split each long cue into the proper lines for the subtitles.

Here's the livestream where I worked on some of the intros.

After editing the audio this way, I used subed-record-compile-video (C-c C-c after subed-record-set-up) to create all the videos by using compile-media and FFmpeg. I could also regenerate just one or two videos by selecting the region and then using the same function..

Once the videos finished, I uploaded them to our password-protected backstage area, and emacsconf-publish-backstage-index added them to the page.

2026-11-12_09-25-45.png
Figure 1: Backstage links to intro

Then I used emacsconf-mail-intro-to-all to send emails to all the speakers with the links to the intros for review. Many speakers confirmed that their pronunciations were fine, and some replied with a recording of their name so that I could use it for reference. I added those in the comments so that I could replay them while recording with R (learn-lang-subed-record-play-current-reference) or learn-lang-subed-record-play-reference-and-current-subtitle. I also copied and pasted the relevant part of the caption file so that I could record different variations with subed-record. It's just text, after all, so it's easy to do all sorts of things the way that you would do them normally in Emacs. For example, here's what it looked like when I was editing the versions for Erik's name:

2026-11-12_14-48-14.png
Figure 2: Screenshot showing reference comments

Erik said option B sounds closest. It's not quite perfect, but it's closer than the pronunciation I started with. I might circle back around to this and try again sometime. =) Anyway, to use option B in the final video, I can just delete the cues for the other versions and remove the part where I said option B. Then I can select that part of the subtitles and compile just his video.

2026-11-12_21-14-47.png
Figure 3: After selecting the audio for Erik's intro

This makes it easy to update the intros whenever something changes. For example, if a speaker turns out to be available during the conference for a live Q&A session, I can update the Org entry for their talk (set :Q_AND_A: live), regenerate the intro slide, and re-record the Q&A explanation or even copy-and-paste one from a different intro. They can also change their talk title and that's totally okay. Yay Emacs!

View Org source for this post