webXMPP

Check-in [0ef40c339b]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:flite pronounces the word "underscore" for every single underscore in the message line...
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:0ef40c339bd01a956de7da2e2f90a673b76739853242e9b3e2a15fb009a06a15
User & Date: vandys 2018-11-20 19:30:26
Context
2018-12-08
15:23
Add time constraint and whitelist check-in: 3c0e84363c user: vandys tags: master, trunk
2018-11-20
19:30
flite pronounces the word "underscore" for every single underscore in the message line... check-in: 0ef40c339b user: vandys tags: master, trunk
2018-11-09
01:41
Some logging for the Ham notification service. Suppress initial notification events while the notify daemon is starting up and catching up. Blacklist is an ofono thing, but it sits alongside the others on my Ubuntu phone, so I'll just keep it here for now check-in: 915508d040 user: vandys tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to tools/ham.py.

137
138
139
140
141
142
143

144
145
146
147
148
149
150
	    # Construct what to say
	    if not n2:
		n = "Notification: %s" % (n1,)
	    else:
		if '@' in n1:
		    n1 = n1.split('@')[0]
		n = "Notification from %s: %s" % (n1, n2)

	    adev = self.cfg["rig"][1]["audio"]
	    desttn = "/tmp/notify%d.txt" % (os.getpid(),)
	    f = open(desttn, "w")
	    f.write(n)
	    f.close()
	    destfn = "/tmp/notify%d.wav" % (os.getpid(),)
	    os.system("flite %s %s" % (desttn, destfn))







>







137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
	    # Construct what to say
	    if not n2:
		n = "Notification: %s" % (n1,)
	    else:
		if '@' in n1:
		    n1 = n1.split('@')[0]
		n = "Notification from %s: %s" % (n1, n2)
	    n = n.replace('_', ' ')
	    adev = self.cfg["rig"][1]["audio"]
	    desttn = "/tmp/notify%d.txt" % (os.getpid(),)
	    f = open(desttn, "w")
	    f.write(n)
	    f.close()
	    destfn = "/tmp/notify%d.wav" % (os.getpid(),)
	    os.system("flite %s %s" % (desttn, destfn))