Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

0
Become a Fan
5.0

Description:
This widget is somehow a port from the one available for Dashboard in Mac OS X, when you enter a sentence in the text field and push the "say it!" button it "scrambles" the sentence in the fashion Yoda would speak it and "says" the sentence via KTTS, if the button "random" is pressed then the widget will come up with one of many Yoda's quotations.

The widget relies entirely in a proper installation of KTTS, the KDE text-to-speech system, therefore if you don't have it installed this widget is useless.

As selecting the voice in the KTTS' dcop interface depends on which ones you have installed, the sentence that the widget sends to it will have a prefix so you can setup a couple of filters for the widget works as intended.

1.- In the KTTS Manager create a talker chooser filter, in the "text contain" field you should write "yskw" (without the quotes), select the voice you want to use.

2.- Create a String replacer filter, in wich the type should be word, the match case checkbox should be on, the match should be the same that in the other one, i.e. yskw, leave the "replace with" field empty.

If you don't mind to use the default voice you have set up in KTTS you can omit the first filter, the reason for it is to give the user an option for use a specific voice for the widget, that way you can edit the volume, speed and pitch to imitate the voice of master Yoda without making KTTS sound funny if you use it for something else, the string replacer filter is mandatory, otherwise every sentence the widget says will have a weird "yskw" at the beginning.

I strongly based the word-reordering-algorithm on the one used for the dashboard widget (http://www.wuersch.net/yoda.html), so full credit goes to Markus Wuersch, creator of the original widget.
Last changelog:

0.1 First Release


Ratings & Comments

7 Comments

5er

what do you have to do to make it not say that weird thing at the beginning of everything? And how do you make it sound like yoda? I'm new to ktts. Thanks.

sangrehirviendo

Open kttsmgr, then in the Filters tab do the following: Create a String replacer filter, in wich the type should be word, the match case checkbox should be on, the match should be yskw, leave the "replace with" field empty. Regarding the voice of Yoda, as obviously is not available for festival, mbrola or whatever engine KTTS use, you can edit the pitch of the voice to make it sound more close to Yoda's.

5er

Thanks for your reply, but it doesn't help, it still says something like "astopic". This was by default (all I did was added a speaker)

sangrehirviendo

can you successfully do in a terminal: $dcop kttsd KSpeech sayText "hello world" "en"

5er

It says hello world without that thing in the beginning.

sangrehirviendo

it should be the string replacer filter, it is simple, you should set it to replace yskw with nothing, check it out.

PARENA

Nice port! :)

Pling
0 Affiliates
Details
license
version 0.1
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 0

More Karamba & Superkaramba from sangrehirviendo:

Amarok Vinyl (+ colored vinyls)
sangrehirviendo
last update date: 17 years ago

Score 5.0

Yahoo Avatars
sangrehirviendo
last update date: 17 years ago

Score 5.0

Ay caramba! (aero-aio theme)
sangrehirviendo
last update date: 18 years ago

Score 5.0

Black theme for a-foto
sangrehirviendo
last update date: 19 years ago

Score 5.0

Other Karamba & Superkaramba:

Evolution Task Theme (for Karamba)
L0rclA5CII
last update date: 22 years ago

Score 5.0

Karambaqua
manor
last update date: 22 years ago

Score 5.0

Karamba Print Queue Monitor
Praxxus
last update date: 22 years ago

Score 5.0

The DarkGirl wallpaper and Karamba theme
xray
last update date: 22 years ago

Score 5.0

TecnoBar for Karamba
ZIOlele
last update date: 22 years ago

Score 5.0

Karamba Ink Level Monitor
Praxxus
last update date: 22 years ago

Score 5.0