TTS amaroK script

Audio Apps

Source (required if based on other people's work):

0
Score 68%
Description:

An amaroK script that announces each song with a configureable message (which may contain title, artist, track length, etc.)

Dependancies:
- Python 2.3+
- KTTSD (KDE text-to-speech daemon). Available in the kdeaccessibility module.

To install:
From amaroK menubar select Tools->Scripts->Install Script
Last changelog:

13 years ago

Thu Feb 17 2005
Option of whether or not to pause playing of the song while it is being announced.

Tue Feb 15 2005
0.1 uploaded

rvadmin

11 years ago

Dear users that have problems with XML saying.
Untar script, open tts.py, replace line 46
with:
return string
then save and tar it.
Than import

Enjoy :)

http://www.smsarea.net

Report

rfdparker2002

12 years ago

I am using Amarok 1.4.1 on Kubuntu Dapper, and I have just found out about this script. I intall ktts and flite and set up a speaker, which worked fine in kttsmgr when reading the clipboard, but when I tried this it reads what it should, but first it says a load of things like "pitch=0" for some reason? Do you know what this is and how to fix it thankyou

Report

JW00000

12 years ago

I've got the same problem. When I open the KDE Text-to-Speech Manager (kttsmgr) I can see the engine is actually saying something like this (literally):
"<speak><voice gender="neutral" age="40"><prosody pitch="medium" range="medium" rate="medium" volume="medium">Title by Artist\nPause=0</prosody></voice></speak>"
Which ends up in a lot of "greater than" and "less than"s said.

Report

muesli

13 years ago

Traceback (most recent call last):
File "/mnt/space/home/muesli/.kde/share/apps/amarok/scripts/tts/tts.py", line 95, in ?
main()
File "/mnt/space/home/muesli/.kde/share/apps/amarok/scripts/tts/tts.py", line 85, in main
if configAsDict()["Pause"] == "1":
KeyError: 'Pause'

i receive this error... ideas?

thanks,
muesli

Report

muesli

13 years ago

funny, i configured this script now via amarok's script dialog. now it starts working. but it seems to read some python source lines first, before finally announcing the song.

funny :-))

...muesli

Report

C

cerulean

13 years ago

Might be reading out XML? That occurs in older versions of KTTSD. I'll probably just remove the SSML surrounding the text spoken - it's purpose was to allow for a little pause, though I guess it's unecessary.

Report

ptitmain

13 years ago

File "/home/jf/.kde/share/apps/amarok/scripts/tts/tts.py", line 95, in ?
main()
File "/home/jf/.kde/share/apps/amarok/scripts/tts/tts.py", line 85, in main
if configAsDict()["Pause"] == "1":
KeyError: 'Pause'

same error here. What could I do ???

Report

gekko

13 years ago

It's a great idea, but how can I install it and which version of amaroK is needed?

Report

markey

13 years ago

amaroK 1.2 is needed.

Tools -> ScriptManager -> Install Script.

Report

Ekardnam

13 years ago

I thought about something like this,
but a wolf (cute) walking around on your
desktop and tell you about the current track.

Report

cepheus

13 years ago

That's brilliant. It would stop and "howl" the name every time it announced the track. Oh! And it could curl up to nap every now and again between tracks. Also! You could stage a dramatic chase between it and thesheep, korama, a permanent addition to the amarok cast of characters. It would be in the style of those road-runner cartoons, where amarok would never quite catch its prey, instead meeting great disastor, and thus ensuing great hilarity. All this could be done on the tops of various windows and bars on the desktop.

So get right on that.

Report

markey

13 years ago

ROFL

Report

Ekardnam

13 years ago

Exactly what I meant!
I'm looking forward to see your great work ;)

Report

C

cerulean

13 years ago

Heh, sounds interesting.
I'll get right on it :P

Report

liquidrock222

13 years ago

Then add the ability to change "mascots" to other things, like a paper clip, and slap "Amarok Assistant" on it.

Report

Superstoned

13 years ago

I can only say: you are a genius. should be merged with the OSD!

Report

13 years ago

Thu Feb 17 2005
Option of whether or not to pause playing of the song while it is being announced.

Tue Feb 15 2005
0.1 uploaded

product-maker 17 43

File (click to download) Version Description Packagetype Architecture Downloads Date Filesize DL OCS-Install
Pling
Details
license
version
0.2
updated Feb 17 2005
added Feb 15 2005
downloads today
0
page views today 1