Skip to content

A port of the emacspeak python server to swift

License

Notifications You must be signed in to change notification settings

robertmeta/swiftmac

Repository files navigation

swiftmac

Confirguration / Install

See: Readme.emacspeak.org

Bonus configuration stuff

; control volume
; these are between 0.0 and 1.0
(setenv "SWIFTMAC_TONE_VOLUME" "0.1") 
(setenv "SWIFTMAC_SOUND_VOLUME" "0.1") 
(setenv "SWIFTMAC_VOICE_VOLUME" "1.0") 
; examples of messing with voices
(swiftmac-define-voice voice-bolden "[{voice en_US:Fred}] [[pitch 0.8]]")
(swiftmac-define-voice voice-animate "[{voice en-US:Kit}] [[pitch 1]]")
(swiftmac-define-voice voice-animate-extra "[{voice en-US:Kit}] [[pitch 1.5 ]]")
(swiftmac-define-voice voice-lighten "[{voice en-AU:Matilda}] [[pitch 1]]")
(swiftmac-define-voice voice-lighten-extra "[{voice en-AU:Matilda}] [[pitch 1.1]]")
(swiftmac-define-voice voice-smoothen "[{voice en-UK:Daniel}] [[pitch 1]]")
(swiftmac-define-voice voice-monotone "[{voice en-US:Eddy}] [[pitch 1]]")
(swiftmac-define-voice voice-monotone-extra "[{voice en-US:Eddy}] [[pitch 1.5]]")

See long names for voices

Footer © 2024 GitHub, Inc. Footer navigation Terms Privacy Security Status Docs Contact Manage cookies Do not share my personal information Address nits and make more clear and fixed an error by robertmeta · Pull Request #129 · tvraman/emacspeak

Introduction

This is an emacspeak server written in swift intended to be as async as reasonable, fast and responsive.

Unless you are a developer or interested in becoming one, you probably want to use the version bundled with emacspeak, I keep that copy up to date with this one fairly consistently.

Hacking

The recommended workflow is to symlink the swiftmac binary under either .build/release/swiftmac or ./build/debug/swiftmac (depending which you are building) to your emacspeak servers directory.

then just

make

for debug or

make release

to build a fresh binary.

I will likely remove make install in the future, as it is a bit fidgety, but I will leave it in for now.

Having Trouble?

It emits warnings and notes

I am aware of the current warnings, it is a goal to get it to build completely clean but tthat is not a priority right now, getting to v2 is the priority.

Double-Speaking

If you are hearing stuff twice, ensure that mac-ignore-accessibility is set and your emacs version supports it. If that doesn’t work, you can use the VoiceOver Utility that comes with MacOS to create an activity for Emacs.app to turn off voiceover while in the Emacs window. This only works if you are using a windowed version of Emacs (not terminal version).