webXMPP

Check-in [8d7ea3e3f0]
Login

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

Overview
Comment:Deal with punctuation in message text.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:8d7ea3e3f06022d5b7b9a3474ee83c6fa2aca12712178c4ebe291126f4fc00a6
User & Date: vandys 2018-09-22 04:01:22
Context
2018-09-22
04:04
Shorten what's spoken for user@domain sources check-in: 37b45bb18e user: vandys tags: master, trunk
04:01
Deal with punctuation in message text. check-in: 8d7ea3e3f0 user: vandys tags: master, trunk
01:08
Bringup check-in: b40feebcbe user: vandys tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to tools/ham.py.

123
124
125
126
127
128
129




130
131
132
133
134
135
136
137
138

	    # Construct what to say
	    if not n2:
		n = "Notification: %s" % (n1,)
	    else:
		n = "Notification from %s: %s" % (n1, n2)
	    adev = self.cfg["rig"][1]["audio"]




	    destfn = "/tmp/notify%d.wav" % (os.getpid(),)
	    os.system("flite -t '%s' %s" % (n, destfn))

	    # Key up the rig
	    self.tx_on()
	    time.sleep(0.75)

	    # Say the message
	    os.system("aplay -D '%s' %s" % (adev, destfn))







>
>
>
>

|







123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142

	    # Construct what to say
	    if not n2:
		n = "Notification: %s" % (n1,)
	    else:
		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))

	    # Key up the rig
	    self.tx_on()
	    time.sleep(0.75)

	    # Say the message
	    os.system("aplay -D '%s' %s" % (adev, destfn))