Has anyone been successful piping GUI selected text to swift ?
I got Diane talking on Ubuntu 16.04.2 LTS 64Bit Desktop With:
$ /usr/bin/padsp /var/opt/swift/bin/swift -n Diane "Apr. 18, 2017 - 5:47 PM - Attorney General Jeff Sessions addresses the danger posed the Central American MS-13 gang to Americans, its history in the US and the plan to beat them, saying 'We're going after them!"
Need to pipe text selected in GUI (News article in Firefox web browser page) with xsel to swift. Any ideas?
This works for espeak. The xsel script is saved in a text file with permissions set for execute. Shortcut set for Ctrl-Mod4-R
#!/bin/bash
xsel | espeak
Unsuccessfully tried this with swift:
#!/bin/bash
xsel | /usr/bin/padsp /var/opt/swift/bin/swift -n Diane
Also
#!/bin/bash
xsel | /usr/bin/padsp /var/opt/swift/bin/swift
Has anyone been successful piping GUI selected text to swift ?