Presenting Text-to-Speech v1.0.0: the flip-side of Speech-to-Text!

132 views
Skip to first unread message

Finn Lancaster

unread,
Aug 15, 2021, 10:00:45 AM8/15/21
to TiddlyWiki
After seeing some recommendations for a text-to-speech plugin in TW5 while releasing the Speech-to-Text plugin v1.0.5 with BTC, I took it upon myself to make my first solo plugin: text-to-speech!

How does it work?
Text-to-Speech uses the web text-to-speech API, which functions like a screen reader. To apply this to TiddlyWiki, I made a custom function calling this API, which then takes as arguments a selected area of text using cutom code I wrote!

Get Started!
To get started with the plugin, you can install by drag-and-drop from text-to-speech.finnsoftware.net! Then, anywhere in your TiddlyWiki, you can highlight text, and press the hotkey Alt+Shift+E, and listen to the plugin read the text to you!

What to Expect in the Future?
  • test for foreign language support
  • test support across browsers
  • button in toolbar/editing

TW Tones

unread,
Aug 15, 2021, 8:44:23 PM8/15/21
to TiddlyWiki
Flanc,

Exciting and thanks for this. I am getting my firefox menus with  Alt+Shift+E

In chrome I heard it momentarily only. I will experiment further.

Regards
Tones

Finn Lancaster

unread,
Aug 15, 2021, 9:21:40 PM8/15/21
to tiddl...@googlegroups.com
Good to know, @TW Tones, I'll change the hotkey to Alt+Shift+L when I can (Alt+Shift+R is taken by speech-to-text already, so I had to choose something different.)

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/ad0f829f-fe4b-4b39-814d-6756ba6e1b99n%40googlegroups.com.

Finn Lancaster

unread,
Aug 16, 2021, 10:18:09 AM8/16/21
to TiddlyWiki
@TW Tones, I have changed the hotkey from Alt+Shift+E to Alt+Shift+L. Let me know how it goes!

TiddlyTweeter

unread,
Aug 16, 2021, 10:43:49 AM8/16/21
to TiddlyWiki
Will the text for I'M THE URBAN SPACEMAN do as well spoken as https://www.youtube.com/watch?v=I5bacSvHraQ ???  

TiddlyTweeter

unread,
Aug 16, 2021, 10:47:05 AM8/16/21
to TiddlyWiki
URBAN SPACEMAN

I'm the urban spaceman baby, I've got speed,
I've got everything I need,
I'm the urban spaceman baby, I can fly,
I'm a supersonic guy.
I don't need pleasure,
I don't feel pain,
If you were to knock me down,
I'd just get up again.
I'm the urban spaceman babe and I'm making out,
I'm all about.
I wake up every morning, with a smile upon my face,
My natural exuberance, spills out all over the place.
I'm the urban spaceman, I'm intelligent and clean,
Know what I mean?
I'm the urban spaceman, as a lover second to none,
It's a lot of fun.
I never let my friends down, I never make a boob,
I'm a glossy magazine, an advert in the tube.
I'm the urban spaceman babe, but here comes the twist,
I don't exist !

TiddlyTweeter

unread,
Aug 16, 2021, 11:01:04 AM8/16/21
to TiddlyWiki
Ciao Flanc ...

I can see UTILITY in  reading back text. BUT I kinda think in TW it needs a bigger aim than just text as native phonic computer tools do that ALREADY.

I DO think reading COMBINED with existing tools like ERIC SHULMAN's excellent "Tiddler Scroller" could be very neat???

Ask if you need links if you don't know what I'm talking about.

TT

Finn Lancaster

unread,
Aug 16, 2021, 11:03:51 AM8/16/21
to tiddl...@googlegroups.com
@TiddlyTweeter:

This is something I have been thinking about too. I’d love to expand the plug-in and make it a Right-Click menu for TW. 

This menu would have a button to read selected text, highlight, bold, underline, etc. If there was no selected text range, it would give the option for a new tiddler, etc. 

What do you think? Can you imagine anything else to put on the right click menu? 

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.

TiddlyTweeter

unread,
Aug 16, 2021, 11:19:20 AM8/16/21
to TiddlyWiki
Ciao Flanc ...

What would be wrong with a normal button on the View Bar for a Tiddler for "Read Aloud This Tiddler" ??

I think that might be more useful than selections?

Just thoughts
TT

Finn Lancaster

unread,
Aug 16, 2021, 11:52:27 AM8/16/21
to tiddl...@googlegroups.com
That is definitely a simpler implementation, @TiddlyTweeter. I will work on adding this for v1.0.2

On Mon, Aug 16, 2021 at 11:19 AM TiddlyTweeter <Tiddly...@assays.tv> wrote:
Ciao Flanc ...

What would be wrong with a normal button on the View Bar for a Tiddler for "Read Aloud This Tiddler" ??

I think that might be more useful than selections?

Just thoughts
TT

On Monday, 16 August 2021 at 17:03:51 UTC+2 flanc...@gmail.com wrote:
@TiddlyTweeter:

This is something I have been thinking about too. I’d love to expand the plug-in and make it a Right-Click menu for TW. 

This menu would have a button to read selected text, highlight, bold, underline, etc. If there was no selected text range, it would give the option for a new tiddler, etc. 

What do you think? Can you imagine anything else to put on the right click menu? 

On Mon, Aug 16, 2021 at 11:01 AM TiddlyTweeter <Tiddly...@assays.tv> wrote:
Ciao Flanc ...

I can see UTILITY in  reading back text. BUT I kinda think in TW it needs a bigger aim than just text as native phonic computer tools do that ALREADY.

I DO think reading COMBINED with existing tools like ERIC SHULMAN's excellent "Tiddler Scroller" could be very neat???

Ask if you need links if you don't know what I'm talking about.

TT

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.

TiddlyTweeter

unread,
Aug 16, 2021, 12:49:37 PM8/16/21
to TiddlyWiki
Ciao Flanc

I encourage you to look at and think a bit about https://tiddlytools.com/autoscroll.html

Eric Shulman did a mass of work on AUTO-SCROLLING that went into the usual desert of neglect.

NOW I'm wondering IF, somehow YOUR reading might be somehow combined with HIS auto scrolling text of Tiddlers?

Mein Ziel ist süß, obwohl es vielleicht nicht dem Zeitgeist entspricht.
 
Best wishes
TT

Finn Lancaster

unread,
Aug 16, 2021, 2:19:54 PM8/16/21
to TiddlyWiki

Interesting Idea. It took me a while, but now I think I get what you're saying: you would like the plugin to read, moving line by line to show WHAT it is currently reading.

I'll have to look at implementation, but the idea is definitely good!

TiddlyTweeter

unread,
Aug 16, 2021, 3:09:24 PM8/16/21
to TiddlyWiki
I don't know IF it needs to slavish follow it. Hopefully not. Merely that reading rate might be roughly matched to scroll rate in some way.

I'm GLAD you grasped my basic idea. Maybe there is some mileage in it?

Best wishes
TT

Eric Shulman

unread,
Aug 16, 2021, 3:25:17 PM8/16/21
to TiddlyWiki
On Monday, August 16, 2021 at 11:19:54 AM UTC-7 flanc...@gmail.com wrote:
I'll have to look at implementation, but the idea is definitely good!

https://tiddlytools.com/autoscroll.html uses CSS transforms and transitions to implement a timed autoscrolling display.
In particular, look in https://tiddlytools.com/autoscroll.html#TiddlyTools%2FAutoScroll%2FViewer at the start() and stop() macros that actually apply the CSS syntax

-e

Finn Lancaster

unread,
Aug 16, 2021, 4:54:27 PM8/16/21
to TiddlyWiki
Thanks for the info! Rather than implement my plugin into others, I figure I'll just add a scroll JS function. Taking a look at the autoscroll plugin, it just seems to mathematically difficult to translate the scroll time/distance into coordinates. Instead, I can just write a function with JS to scroll to certain coords, which is much more mathematically feasible since I can send the line num to the function.
Reply all
Reply to author
Forward
0 new messages