Emacspeak: A Speech Odyssey
1. Dedication: To My Guiding Eyes Aster, Hubbell and Tilden
2. Key Insights
- User interface is a means to an end.
- Open Source is essential for discovering new interaction paradigms.
- This is not mere idealism. Openness is a key enabler for creating user journeys that were not envisioned by a system’s designers.
- Emacs and TeX are good exemplars. They permit maximal freedom when seen from the viewpoint of user extensibility and creativity. TeX enabled Audio System For Technical Readings (AsTeR); Emacs enabled Emacspeak.
- Rapid, reliable task completion is the most important metric and trumps secondary items such as eye-candy — the latter onlyleads to bloat as evinced by the HTML Web.
- Having a well-identified problem when designing a system is paramount.
- Usability is important, but to matter, the system needs to be useful first.
- Ease of use by itself is often marketing hype.
- Useful systems are fun to learn and give back more than what you put in with respect to time and effort.
- A steep learning curve in and of itself is not to be feared — it can be fun to learn and gets you farther faster.
- True empowerment: Ensure that the user grows continuously.
3. Emacspeak — The Complete Audio Desktop
- Emacspeak, started in September 1994, was released as Open Source in April 1995.
- The goal was to create a system for daily use that doubledas a research work-bench for developing an auditory interface.
- Speech and auditory output would be treated as first-class citizens.
- The time felt right with respect to building a system that enabled eyes-free access to the emerging Web.
- Emacspeak At Twenty was published in September 2014 and traced the evolution of the project.
- Now, this article gives a birds-eye overview of the last 10 years by loosely following the logical structure of the Turning Twenty paper.
- In the process, we identify the dreams that have come to pass as well as the expectations that have failed to materialize — both attributable to developments in the larger Internet eco-system.
- But never fear, though some of these may be superficially disappointing, they likely herald the nature of bigger and better things to come!
- As a proof-point, in 1994, I could not have imagined the impact that the world of Internet-centered computing and the accompanying information revolution would have on the state of information access.
- Conversely, I boldly (and incorrectly) predicted that the arrival of mobile devices and mainstream speech interfaces would herald the move to a Web of information where there would be a clean separation between application back-ends and various client-specific front-ends. See Specialized Browsers and The Web, The Way You Want. Distinguished Lecture Series, UW Oct 2007.
- The above still makes sense from the view of scalable software architecture. However the rapid growth of the Web economy has also resulted in an even faster race to the bottom where applications continue to be built and re-built every few years for the next best thing — welcome to the write once, debug everywhere world all over again!
- Case in point; today we have smart phones, smart watches and smart speakers, but each of these require targeted front-ends if one wishes to bring the riches of the Internet to them.
- So the larger the Web gets, the fewer devices it becomes available on — a classic downward spiral.
Share And Enjoy — The Best Is Yet To Come!
3.1. How To Read This Document
- I recommend reading the Turning Twenty paper to get a full overview.
- Then, read this paper a section at a time, while referring back to the parallel section in the Turning Twenty paper to understand how things have evolved.
- Make sure to skim or deep-dive into the references in both papers.
4. Using UNIX With Speech Output — 2024
- In 2024 UNIX equates mostly to various Linux distributions, and from the Emacspeak perspective, they are all made mostly equal.
- Variations do exist and running bleeding-edge distributions can come with issues, e.g., unstable versions of the underlying audio infrastructure.
- Yes, 30 years and counting, Linux Audio is still a work in progress though I hope Pipewire will be the last of these tidal shifts.
- Linux is moving to Wayland and expect that transition to be choppy.
- Native applications are mostly gone bar the shouting. In this context, where most users access things through a mainstream Web browser, Emacspeak users access everything through Emacs.
- The above when done right is hugely empowering; when done badly, it’s extremely limiting — see later sections of this paper on the continuing evolution of the Web.
5. Key Enabler — Emacs And Lisp Advice
- Advice in Emacs as implemented in
advice
is rock-solid. - There is a newer
nadvice
that is part of Emacs that Emacspeak does not use. - There are no plans to migrate to
nadvice
since that is a lot of busy work in my view and any such migration would be difficult to test for correctness. - The classic advice package may be removed from Emacs at some point in the future, but never fear; it’ll be bundled with Emacspeak if that becomes necessary. This is a feature of Free Software and is a great example of what that Freedom entails.
6. Key Component — Text To Speech (TTS)
- Speech output — especially unencumbered text-to-speech — is just as much a challenge as it was 30 years ago.
- In the bigger picture, early instances of using TTS for voice assistants has driven the industry toward natural sounding voices.
- The above sounds attractive on the surface, but a price we have paid is the loss of fine-grained control over voice parameters, emotion, stress and other supra-linguistic features.
- I believe these to be essential for delivering good auditory interfaces and remain optimistic that these will indeed arrive in a future iteration of speech interaction.
- Things appear to be coming full circle, Emacspeak started with the hardware Dectalk; now, the Software Dectalk is increasingly becoming the primary choice on Linux — see this Readme for setup instructions.
- Viavoice Outloud from Voxin is still supported. However, you can no longer buy new licenses. If you have already purchased a license, it’ll continue to work.
- The Vocalizer voices that Voxin now sells do not work with Emacspeak.
- The other choice on Linux is ESpeak which will hopefully continue to be free — albeit of much lower quality.
- The future as ever is unpredictable and new voices may well show up — especially those powered by on-device Large Language Models (LLMs).
- On non-free platforms, there is usable TTS on the Mac, now supported by the new SwiftMac server for Emacspeak.
7. Emacspeak And Software Development
- Magit as a Git porcelain is perhaps the biggest leap forward with respect to software development.
- New completion frameworks such as company and consult come a close second in enhancing productivity.
- Completion strategies such as fuzzy andflex provide enhanced completion.
- Effective Suggest And Complete In An Eyes-free Environment explains the higher-level concept involved in defining such strategies.
- The ability to introspect code via
eglot
turns Emacs into a powerful and meaningful IDE — I say meaningful because this brings the best features of an integrated development environment while leaving behind the eye-candy that tends to bloat commercial IDEs. - Packages like transient enable discoverable, rapid keyboard access to complex nested-menu driven interfaces.
- Ergonomic keybindings under
X
using xcape to minimize chording has been a significant win in the last two years. - Jupyter is the generalization of IPython notebooks to Julia, Python and R. The news here isn’t all good; IPython notebooks are well-designed with respect to not getting locked into any given implementation. However in practice, front-ends depend on Javascript in the browser.
- Consequently, Emacs packages for IPython
Notebooks e.g., package
ein
, are no longer maintained. - Developing in higher-level languages continues to be very well supported in Emacspeak.
- The re-emergence of Common Lisp in the last 20 years,
thanks to
asdf and quicklisp as a network-aware package manager and build
tool has once again made Lisp development using Emacs
Slime
a productive experience. - In 2022, I updated Audio System For Technical
Readings (AsTeR)— my PhD project from 1993
— to run under
SBCL
with a freshly implemented Emacs front-end. - So now I can listen to Math content just as well as I could 30 years ago!
8. Emacspeak And Authoring Documents
- Package
org
is to authoring asmagit
is to software development with respect to productivity gains. Org
has existed since circa 2006 in my Emacs setup; but it continues to give and give plentifully.- Where I once authored technical papers in
LaTeX using
auctex
, usednxml
for HTML, etc., I now mostly write everything inorg-mode
and export to the relevant target format. - Integrating various search engines in Emacs makes authoring content extremely productive.
- Integrated access to spell-checking
(
flyspell
) dictionaries, translation engines, and other language tools combine for a powerful authoring work-bench. - Extending
org-mode
with custom link types enables smart note taking with hyperlinks to relevant portions of an audio stream — see article Learn Smarter By Taking Rich Hypertext Notes.
9. Emacspeak And The Web In 2024
- Package
shr
andeww
arrived around 2014. But in 2024, they can be said to have truly landed. - 2014 also marked the explicit take-over of the stewardship of the HTML Web by the browser vendors from the W3C — I say explicit — because the W3C had already thrown in the towel in the preceding decade.
- This has led to a Web of content created using the assembly language of divs, spans and Javascript under the flag of HTML5 — the result is a tangled web of spaghetti that everyone loves to hate.
- In this context, see Tag Soup, Scripts And Obfuscation: How The Web Was Broken for a good overview of HTML’s obesity problem.
- For better or worse, the investment in XML and display-independent content is now a complete write-off at least on the surface.
- So what next — wait for the spaghetti monster to show up for lunch? Humor aside that monster may well be called AI — though whether today’s Web gives that monster life, indigestion, constipation, dysentery or hallucinations is a story to be written in the coming years.
- I say on the surface above because The
welcome re-emergence of
ATOM
andRSS
feeds is perhaps a silent acknowledgement that bloated Web pages are now unusable even for users who can see. - Package
elfeed
has emerged as a powerful feed-manager for Emacs. - Emacspeak implements
RSS
andATOM
support usingXSLT
; those features now shine brighter with mainstream news sites reviving their support for content feeds. - Browsers like Mozilla now implement content filters — a euphemism for scraping off visual eye-candy and related cruft to reveal the underlying content. These are now available as plugins, (see RDRView for an example). Emacspeak leverages this to make the Web more readable.
- Package
url-template
andemacspeak-websearch
continue to give in plenty, though they do require continuous updating. - Web APIs come and go, so that space is in a state of constant change.
- The state of web applications is perhaps the most concerning from an Emacspeak perspective, and I do not see that changing in the short-term. There are no incentives for Web providers to free their applications from the tangled Web of spaghetti they have woven around themselves.
- But as with everything else in our industry, it is precisely when something feels completely entrenched that usersrebel and innovations emerge to move us to the next phase — so fingers crossed.
10. Audio Formatting — Generalizing Aural CSS
- Audio formatting with Aural CSS support is stable, with newenhancements supporting more TTS engines.
- Support for parallel streams of TTS using separate outputs to left/right channels is a big win and enables more efficient interaction.
- Support for various Digital Signal Processing (DSP) filters enables rich auditory effects like binaural audio and spatial audio.
- Soundscapes implemented via package
boodler
makes for a pleasant and relaxing auditory environment. - Enabling virtual sound devices via Pipewire for 5.1 and 7.1 spatial audio significantly enhances the auditory experience.
11. Conversational Gestures For The Audio Desktop
- Parallel streams of audio, combined with more ergonomic keybindings are the primary enhancement in this area.
- Parallel streams of speech, e.g., a separate notification stream on the left or right ear help increase the band-width of communication.
- Notifications can thus be delivered without having to stop the primary speech output.
12. Accessing Media Streams
- Emacspeak support for rich multimedia is now much more robust.
- Emacs package
empv
is a powerful tool for locating, organizing and playing local and remotemedia streams ranging from music, audio books, radio stations and Podcasts. - This makes media streams from a large number of providers ranging from the BBC to Youtube available via a consistent keyboard interface.
- This experience is augmented by a collection of smart content locators on the Emacspeak desktop, see the relevant blog article titled smart media selectors.
13. Electronic Books— Ubiquitous Access To Books
- Emacspeak modules for Epub and Bookshare continue to provide good books integration.
- There are smart book locators analogous to the locators for media content.
- Emacspeak speech-enables
Calibre
for working with local electronic libraries.
14. Leveraging Computational Tools — From SQL And R To IPython Notebooks
- This area continues to provide a rich collection of packages.
- Newer highlights include
sage
interaction for symbolic computation. - Emacspeak speech-enables packages
gptel
andellama
for working with local and network LLMs.
15. Social Web — Mail, Messaging And Blogging
- This is a space that is definitely regressing.
- The previous decade was marked by open APIs to many social Web platforms.
- Over time these first regressed with respect to privacy.
- Then they turned into wall-gardens in their own right.
- Finally, the Web APIs, other than the kind embedded in Javascript have started disappearing.
- Looking back, the only social platform I now use is Blogger for hosting my Emacspeak Blog, it has a somewhat usable API, albeit guarded by a difficult to use OAuth interface that requires signing in via a mainstream browser.
- IMap continues to survive as an open email protocol, though its days may well be numbered.
- The dye is already cast with respect to mere mortals being able to setup and host their email — witness the complexity in setting up the Emacspeak mailing list in 2023 vs 1993!
- This is an area that is likely to get worse before it getsbetter, thanks to the spammers — more’s the pity, since Internet Email is perhaps the single-most impactful technology with respect to leveling the communications playing field.
- The disappearance of APIs mentioned above also means that today the only usable chat service on an open platform like Emacspeak is the venerable Internet Relay Chat (IRC).
16. The RESTful Web — Web Wizards And URL Templates For Faster Access
- This area continues to thrive — either because of — or despite — the best and worst efforts of application providers on the Web.
- Twenty years on (this feature originally landed in 2000) Emacspeak has a far richer collection of filters, preprocessors and post-processors that enables ever-more powerful Web wizards. See the relevant chapter in the Emacspeak manual for the automatically updated list of URL Templates.
17. Mashing It Up — Leveraging AI And The Web
- Developing solutions by combining various API-based services on the Web has all but disappeared, unless one is willing to commit fully to the Javascript-powered Web hosted in a Web browser, something I hope I never have to accept.
- So for now, I’ll keep well away and count my blessings.
- The next chapter of the mash-up story may well be based around Generative AI using LLMs. In effect, LLMs trained on Web content define a platform for generating content mash-ups. The issue at present is that they are just as likely to produce meaningless mush — something that may get better as the field gets a handle on cleaning up Web content.
- Notice that we are now back to the previously unsolved problem of cleaning up the HTML Web — with LLMs, we’ll just have an order of magnitude more documents than the 2W postulated by Beyond Web 2.0, Communications Of The ACM, 2009.
18. The Final Word — Donald E Knuth (DEK)
- The best theory is inspired by practice. The best practice is inspired by theory.
- The enjoyment of one’s tools is an essential ingredient of successful work.
- Easy things are often amusing and relaxing, but their value soon fades. Greater pleasure, deeper satisfaction, and higher wages are associated with genuine accomplishments, with the successful fulfillment of a challenging task.
- Computer Programming Is An Art.
The best example of the above is of course Knuth’s TeX — work that was motivated by his own dissatisfaction with the tools available to him at the time for typesetting his magnum opus — The Art Of Computer Programming (TAOCP). It is something I’ve looked up to ever since my time as a graduate student at Cornell.
The Emacspeak Speech Odyssey outlined in this paper is, in some small measure, my own personal experience of the sentiments he expresses.
–T. V. Raman, San Jose, CA, August 1, 2024.
19. References
- User Interface is a means to an end, DDJ 1997.
- GNU Emacs
- Knuth’s TeX
- Audio System For Technical Readings
- Announcing Emacspeak: April 1995
- Emacspeak At Twenty
- The Web, The Way You Want. Distinguished Lecture Series, UW Oct 2007
- Specialized Browsers
- An Ode To Emacspeak: The Best Is Yet To Come
- Software Dectalk on Github
- Dectalk setup instructions
- Effective Suggest And Complete In An Eyes-free Environment
- Common Lisp: asdf
- Common Lisp: Quicklisp
- Soundscapes on the Emacspeak Audio Desktop
- RESTful Web
- Ergonomic keybindings
- Minimize chording with XCape
- Learn Smarter By Taking Rich Hypertext Notes
- Tag Soup, Scripts And Obfuscation: How The Web Was Broken
- Readable Web Pages: RDRView
- smart media selectors
- Beyond Web 2.0, Communications Of The ACM, 2009
- Emacspeak Manual: URL Templates
- Beautiful Code An overview of the Emacspeak architecture, O’Reilly Media, 2007.
- The Art Of Computer Programming (TAOCP)