The time now is Tue 18 Jun 2013, 21:24
All times are UTC - 4 |
| Author |
Message |
big_bass

Joined: 13 Aug 2007 Posts: 1736
|
Posted: Fri 02 Jul 2010, 13:22 Post_subject:
|
|
Hey vovchick
Depending what voice program is installed
having different choices to select from is always the best way
working out the filter for festival is very important because the sound quality is very good keep at it
heres a nice little pic for that robot sound
for personal use only of course
thanks
Joe
| Description |
|
| Filesize |
57.97 KB |
| Viewed |
1267 Time(s) |

|
_________________ slackware 14
|
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Fri 02 Jul 2010, 14:19 Post_subject:
Re: Learning experience |
|
| Minnesota wrote: | Lobster:
Can you direct me to the Pets??
Thanks everyone. |
Page 2 of this very thread
_________________ Puppy WIKI
|
|
Back to top
|
|
 |
vovchik

Joined: 23 Oct 2006 Posts: 1239 Location: Ukraine
|
Posted: Mon 05 Jul 2010, 13:45 Post_subject:
|
|
Dear Puppians (particularly Lobster and big_bass),
I did something for xcowsay over the past few days. Here is a little markup editor that allows for nice tag editing and preview, plus voice synthesis and the saving of results in ready-to-run executable scripts. Please have a look. Much more info on how this thing runs is available in the help file.
Have fun.
With kind regards,
vovchik
PS. Please bear in mind that this is kind of a "first draft", and suggestions are always welcome.
| Description |
|
| Filesize |
29.05 KB |
| Viewed |
1219 Time(s) |

|
| Description |
|

Download |
| Filename |
xcowmoo.pet |
| Filesize |
35.6 KB |
| Downloaded |
443 Time(s) |
|
|
Back to top
|
|
 |
Jim1911
Joined: 19 May 2008 Posts: 2353 Location: Texas, USA
|
Posted: Mon 05 Jul 2010, 17:14 Post_subject:
|
|
| vovchik wrote: | | I did something for xcowsay over the past few days. Here is a little markup editor that allows for nice tag editing and preview, plus voice synthesis and the saving of results in ready-to-run executable scripts. Please have a look. Much more info on how this thing runs is available in the help file. | Thanks for the pet, however, not working on luci-208.
| Code: | # xcowmoo-run
./xcow-moo: line 420: gtkdialog: command not found |
Jim
|
|
Back to top
|
|
 |
vovchik

Joined: 23 Oct 2006 Posts: 1239 Location: Ukraine
|
Posted: Mon 05 Jul 2010, 17:21 Post_subject:
|
|
Dear Jim,
The problem is that gtkdialog in many Puppies has been renamed gtkdialog3 (to distinguish it from an earlier version of gtkdialog, which is called gtkdialog2 in some Puppies). The program will run fine if you simply make a symlink (using Rox, right click on /usr/sbin/gtkdialog3 and click on "Symlink", having deleted the "3" from the input box). You will then have a symlink to gtkdialog3 name gtkdialog (which is the standard name, BTW).
With kind regards,
vovchik
PS. I will do that automatically in the next version.
|
|
Back to top
|
|
 |
seaside
Joined: 11 Apr 2007 Posts: 841
|
Posted: Mon 05 Jul 2010, 17:34 Post_subject:
|
|
vovchik,
Yes, that is alot of fun - nice job. The only thing that didn't work was the span "font" selection. I'm using Pup 431 and since I don't have a $HOME./fonts directory, I created it and linked my "fonts.dir" file and it still didn't work - I'll try to look at the code later.
Thanks for the pet, however, not working on luci-208.
| Code: | # xcowmoo-run
./xcow-moo: line 420: gtkdialog: command not found |
[/quote]
Jim, try this in a terminal -
| Code: | | ln /usr/sbin/gtkdialog3 /usr/sbin/gtkdialog |
And then restart.
Cheers,
s
(Edit, didn't see Vovchik's post's answer)
|
|
Back to top
|
|
 |
vovchik

Joined: 23 Oct 2006 Posts: 1239 Location: Ukraine
|
Posted: Mon 05 Jul 2010, 17:49 Post_subject:
|
|
Dear seaside,
I am glad you're having fun. I am, to be sure. You may have to update your fonts.dir (i.e. make it real or refresh it).
The commands are (from a term in the $HOME/.fonts dir):
| Code: |
mkfontscale .
mkfontdir .
fc-cache -fv . (takes a minute)
xset fp+ /root/.fonts
|
Note the space and full stop in the stuff above. Then restart X. Some old M$ TTF fonts don't display well with Pango, so check out a few fonts. My old Academy fonts dumped from an M$ machine work fine in nearly all GTK apps, QT/KDE and OO but do not display in a few apps where Pango is involved. I will have to massage them in fontforge, I suppose.
With kind regards,
vovchik
|
|
Back to top
|
|
 |
Jim1911
Joined: 19 May 2008 Posts: 2353 Location: Texas, USA
|
Posted: Mon 05 Jul 2010, 18:15 Post_subject:
|
|
| vovchik wrote: | The problem is that gtkdialog in many Puppies has been renamed gtkdialog3 (to distinguish it from an earlier version of gtkdialog, which is called gtkdialog2 in some Puppies). The program will run fine if you simply make a symlink (using Rox, right click on /usr/sbin/gtkdialog3 and click on "Symlink", having deleted the "3" from the input box). You will then have a symlink to gtkdialog3 name gtkdialog (which is the standard name, BTW).
| Worked, thanks,
Jim
|
|
Back to top
|
|
 |
seaside
Joined: 11 Apr 2007 Posts: 841
|
Posted: Mon 05 Jul 2010, 18:48 Post_subject:
|
|
| vovchik wrote: | Dear seaside,
I am glad you're having fun. I am, to be sure. You may have to update your fonts.dir (i.e. make it real or refresh it).
The commands are (from a term in the $HOME/.fonts dir):
| Code: |
mkfontscale .
mkfontdir .
fc-cache -fv . (takes a minute)
xset fp+ /root/.fonts
|
Note the space and full stop in the stuff above. Then restart X. Some old M$ TTF fonts don't display well with Pango, so check out a few fonts. My old Academy fonts dumped from an M$ machine work fine in nearly all GTK apps, QT/KDE and OO but do not display in a few apps where Pango is involved. I will have to massage them in fontforge, I suppose.
With kind regards,
vovchik |
Vovchik,
Thanks for the pointer on refreshing the fonts. I looked at the code and made this change in line 43. (Removed "!" -not- in front of "-e" at the beginning of the line)
| Code: | | [ -e "$FILE_FONT" ] && egrep -v "(Bold|Oblique|Italic)" "$FILE_FONT_DIR" | cut -d "-" -f1 | uniq | grep -E "^[a-zA-Z]" | cut -d "." -f1 > $FILE_FONT && cut -d "-" -f1 /usr/share/fonts/X11/100dpi/fonts.alias | uniq | grep -E "^[a-zA-Z]" >> $FILE_FONT |
All the fonts show up now in the span area.
Thanks again for bringing the singing and felicity of talking cows, cats and puppies into a nice integrated package.
Regards,
s
|
|
Back to top
|
|
 |
vovchik

Joined: 23 Oct 2006 Posts: 1239 Location: Ukraine
|
Posted: Mon 05 Jul 2010, 19:08 Post_subject:
|
|
Dear seaside,
I have already implemented your mod and it will be in the next release. I also should probably put a button on the bottom to open rox in /usr/local/xcowmoo/dialog or make a combobox or filechoose button to show the dialog files so they can be launched as a kind of "proof of the pudding". Users may not know where to find the generated scripts. I am certain a good many ideas for improvement will come to us. Also, to create mini-animations, there should be a possibility to sequence the generated dialogs in a concatenated script or a launch file.
Thanks.
With kind regards,
vovchik
PS. It occurred to me that line 43 (without the "not") won't create a file if there is none, so I have to do a file check. Although that line is hideously long already, I thought it might benefit from a "| sort -f" at the very end, so that we get a font list that is sorted without case sensitivity. It is easier to find fonts that way, at least for me.
|
|
Back to top
|
|
 |
seaside
Joined: 11 Apr 2007 Posts: 841
|
Posted: Mon 05 Jul 2010, 19:24 Post_subject:
|
|
| vovchik wrote: | Dear seaside,
I have already implemented your mod and it will be in the next release. I also should probably put a button on the bottom to open rox in /usr/local/xcowmoo/dialog or make a combobox or filechoose button to show the dialog files so they can be launched as a kind of "proof of the pudding". Users may not know where to find the generated scripts. I am certain a good many ideas for improvement will come to us. Also, to create mini-animations, there should be a possibility to sequence the generated dialogs in a concatenated script or a launch file.
Thanks.
With kind regards,
vovchik |
Vovchik,
I always wondered where the saying "proof of the pudding" came from. Was it from one of those early days of history when merchants tried to fake such things or some other origin. I think the proof would be good.
I noticed this line used in the gtkdialog tree script -"<action signal="cursor_changed">". I don't remember seeing that action signal before - is this another secret gtkdialog function?
Looking forward to any new versions,
Regards,
s
|
|
Back to top
|
|
 |
vovchik

Joined: 23 Oct 2006 Posts: 1239 Location: Ukraine
|
Posted: Tue 06 Jul 2010, 09:38 Post_subject:
|
|
Dear seaside,
The "<action signal="cursor_changed">" bit is also used by Zibert. Here, for instance:http://www.murga-linux.com/puppy/viewtopic.php?t=35601&start=2280. It would be nice if gtkdialog were documented properly, wouldn't it?
With kind regards,
vovchik
|
|
Back to top
|
|
 |
big_bass

Joined: 13 Aug 2007 Posts: 1736
|
Posted: Wed 07 Jul 2010, 22:46 Post_subject:
|
|
vovchick
| Quote: | | Dear Puppians (particularly Lobster and big_bass), |
great stuff
any GUI that helps the end user code something faster and error free
with pre-built in commands that are tested
will advance the usability greatly
so more fun and less time coding
*a mini how to would be motivating to get more people started
and try some simple commands to get comfortable
* I pre installed xcowsay and flite in my new ISO called TXZ_pup 4.5
so any examples with flite would be nice to add and fun to test
Joe
_________________ slackware 14
|
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Fri 30 Jul 2010, 05:28 Post_subject:
Ganesha |
|
Dear vovchik, fellow fun lovers,
Editor is a great idea
Had to play about a bit to understand how to get that link . . .
One of my duties as official crustacean to Puppy Linux
is to provide cyber elephants.
It is a hard job but someone has to be crazy enough to do it . . .
I have done that with the enclosed file which is designed
for Lucid 5.1 (it will not work in Lucid 5.0) as mplayer is used.
If you want to use another version of Puppy
you will need to change
| Code: | | mplayer Ganesh_Mantra.mp3 "$@" & |
to something like
| Code: | | gxine Ganesh_Mantra.mp3 "$@" & |
Download the file
unzip in a directory
and run the xpupsay-1 pet
then run 'xcowsay'
It is a vedic invocation
to the Hindu deity Ganesh - partially elephant
(featuring Shivas male cow)
Ganapatayei is one of Ganeshas many names
Below is the code
I mean it as a serious contribution to
a 40 day practice/puja I am doing
Much to my surprise Ganesha is venerated by some Christians,
as well as Hindus, Jains, Buddhists, the spiritually demented
I did try using flite for repeating mantras
but found it hard to get an acceptable effect
- if you have flite installed there is still a remnant
in the code . . .
The best I could do with flite, is this mantra to Murugan (brother of Ganesh)
| Code: | | flitet "OM, SHA-RA-VA-NA-BHA-VA-YA, NAHMA-HAH." |
So what I have done is use an actual mp3 file and repeated that
Not sure how it works out on slower computers . . .
and of course doing it this way, makes the size larger . . .
It also counts the number of mantras recited and displays that
| Code: | #! /bin/bash
# Sacred Vedic Chants
# Lobster, Vovchic, Joe Big Bass, Seaside, Potong
- Aug 6 010
# --------------------
function init_vars()
# --------------------
{
txt1="Ganesh\n
Will chant mantras for you\n
OM SHANTI OM"
txt2="Om Gam Ganapatayei Namaha"
sec=10
fnt="DejaVu Sans Bold 15"
repetitions=27 # Change the number of recitations
}
# # # # # # # # # # # # # # #
function display_message()
# # # # # # # # # # # # # # #
{
aplay tinsha.wav "$@" &
xpupsay --image=ganesha1.gif --time=4 "Om Gam Ganapatayei Namaha" "$@"
printf %b "$txt1" | xpupsay --image=nandi.png --time=$sec --font="$fnt" "$@" | aplay &
sleep 10
for g in $(eval echo {$repetitions..1})
do
mplayer Ganesh_Mantra.mp3 "$@" &
printf %b "$txt2 \n\n" " $g" | xpupsay --image=ganesh.gif --time=6 --font="$fnt" "$@"
done
sleep 2
xpupsay --image=ganesha1.gif --time=9 "Om Gam Ganapatayei Namaha" "$@" &
aplay tinsha.wav "$@" &
}
# # # # # # # #
# END FUNCTIONS
# # # # # # # #
# # # # # # # #
# MAIN
# # # # # # # #
init_vars
display_message
# # # # # # # #
# END MAIN
# # # # # # # # |
For those of you not used to Hindu iconography
it can be a little disconcerting
So . . .
The mantra is a greeting to Ganesh
and is designed to overcome obstacles
You can chant along or just listen
Any merit is dedicated to Puppy Linux Lucid 5.1
and in particular Larry and Mick
who have worked on two Puppy editions now
I have set the mantra to repeat 27 times
which is enough to gain a little piece of peace
but not turn you completely Ganapatayei
Om Gam Ganapatayei Namaha
Holy Cow
it's Puppy Linux
| Description |
|

Download |
| Filename |
ganesh.zip |
| Filesize |
430.33 KB |
| Downloaded |
294 Time(s) |
_________________ Puppy WIKI
|
|
Back to top
|
|
 |
seaside
Joined: 11 Apr 2007 Posts: 841
|
Posted: Fri 06 Aug 2010, 17:04 Post_subject:
|
|
Lobster,
So this is what the repetitions were for.......
An elephantine, way off-broadway, Tibetan chanting production of "Hello Dalai".
Would I be repeating myself by saying "Isn't this what Puppy is all about?" - "**** four stars, enchanting, spellbinding -don't miss"
Ciao,
s
|
|
Back to top
|
|
 |
|
|
|
Rules_post_cannot Rules_reply_cannot Rules_edit_cannot Rules_delete_cannot Rules_vote_cannot You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|