Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 25 Oct 2014, 05:15
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
xcowsay talking lobster? new x message display with icon
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 4 of 6 Posts_count   Goto page: Previous 1, 2, 3, 4, 5, 6 Next
Author Message
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: Wed 30 Jun 2010, 13:09    Post_subject:  

Dear Joe,

I was also thinking along the same lines - and thinking of this: http://murga-linux.com/puppy/viewtopic.php?t=40418, which I posted a donkey's age ago. It could be reworked and show the xcowsay bit, perhaps also with speech, so that the entire "animation" could be properly timed. The gui would require adding a seconds entry widget and a checkbox for sound or not.

With kind regards,
vovchik

PS. I have included a slightly modified version of markup here (cleaned up and structured). It is easier to make changes to this version. Try copying this into the edit window:
Code:
<span color="red"><tt><i>I'M</i> <u>ON</u> A <s>ROLL</s></tt> !</span><span color="green"> OK</span><sup>2</sup>?
<b>I'M ON A ROLL</b>
<b><big>I'M ON A ROLL</big></b>
<b><big><big>I'M ON A ROLL</big></big></b>
<b><big><big><big>I'M ON A ROLL</big></big></big></b>
<b><big><big><big><big>I'M ON A ROLL</big></big></big></big></b>
<b><big><big><big><big><big>I'M ON A ROLL</big></big></big></big></big></b>


You will get the text shown in the image.
xcow-tag-edit.jpg
 Description   
 Filesize   28.3 KB
 Viewed   1291 Time(s)

xcow-tag-edit.jpg

mark-up.tar.gz
Description 
gz

 Download 
Filename  mark-up.tar.gz 
Filesize  1.5 KB 
Downloaded  408 Time(s) 
Back to top
View user's profile Send_private_message 
big_bass

Joined: 13 Aug 2007
Posts: 1747

PostPosted: Wed 30 Jun 2010, 17:52    Post_subject:  

Hey vovchick

I was thinking about a GUI to aid in producing the code
one step before the viewer comes in

then it could be viewed like this also

save it a vovchick.html then click on it Very Happy

Code:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html><head></head><body>
<span color="red"><tt><i>I'M</i> <u>ON</u> A <s>ROLL</s></tt> !</span><span color="green"> OK</span><sup>2</sup>?
<b>I'M ON A ROLL</b>
<b><big>I'M ON A ROLL</big></b>
<b><big><big>I'M ON A ROLL</big></big></b>
<b><big><big><big>I'M ON A ROLL</big></big></big></b>
<b><big><big><big><big>I'M ON A ROLL</big></big></big></big></b>
<b><big><big><big><big><big>I'M ON A ROLL</big></big></big></big></big></b>

</body>
</html>

_________________
debian wheezy ,linux mint, slackware I use them all and they all have good points
Mint would be best for general users though
Back to top
View user's profile Send_private_message 
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: Wed 30 Jun 2010, 18:32    Post_subject:  

Dear Joe,

That works but great, but I think this little editor has potential here, too. Have a look at the attached. It's not quite ready because I am still trying to strip out trailing newlines in the edit window and in the string that gets passed to xcowsay. And the results still need to be "put together" nicely in an independent script as part of the xcowsay-generator package. But you get the idea. As you know sed better than I do, perhaps you can fix the trailing newline problem. Basically we don't want any trailing new lines except the last one. I think your idea of having the tags available as comboboxes and lists is what we want in the end.

With kind regards,
vovchik
xcowmarkup.tar.gz
Description 
gz

 Download 
Filename  xcowmarkup.tar.gz 
Filesize  1.81 KB 
Downloaded  409 Time(s) 
Back to top
View user's profile Send_private_message 
Minnesota

Joined: 11 Sep 2008
Posts: 313

PostPosted: Wed 30 Jun 2010, 19:09    Post_subject: Sound  

Been following the fun for the past few days. .was going to ask if it would talk.. then the reference to "festival".... is there a pet for the festival that will run on Luci or any version for that matter? Looked at the reference thread... but did not see a download link. Or did I miss it?

Keep up the FUN!
Back to top
View user's profile Send_private_message 
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: Wed 30 Jun 2010, 19:21    Post_subject:  

Dear Minnesota,

Lobster did this festival pet back in 2008, and I think it is the one I have installed: http://tmxxine.com/festival/festival.pet.

The link is alive and the pet should work.

With kind regards,
vovchik
Back to top
View user's profile Send_private_message 
Minnesota

Joined: 11 Sep 2008
Posts: 313

PostPosted: Wed 30 Jun 2010, 21:35    Post_subject: must be my ignorance  

vovchik:

Pet downloaded fine, running under Lucid 501 I think... what flavor of puppy are your running Felix with? Not all that familiar with Linux code... so please excuse ignorance. Tried clicking on Felix icon. had in wrong director, made xcowsay directory, tried from open terminal, as well as clicked on Felix. Ran festival pet, previously. Nothing.

Thanks.
Back to top
View user's profile Send_private_message 
big_bass

Joined: 13 Aug 2007
Posts: 1747

PostPosted: Wed 30 Jun 2010, 23:16    Post_subject:  

festival-1.96 sound support
http://repository.slacky.eu/slackware-12.2/utilities/festival/1.96-beta/festival-1.96_beta-i686-3as.tgz

I installed this one its a more complete package
on slaxer its working well

Joe

_________________
debian wheezy ,linux mint, slackware I use them all and they all have good points
Mint would be best for general users though
Back to top
View user's profile Send_private_message 
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: Thu 01 Jul 2010, 06:01    Post_subject:  

Dear Minnesota,

I would use big_bass's festival. It works fine on various Puppies, as does Felix. What you need to do first is to install the xcowsay pet. After that, unpack my Felix archive. It contains a script, a few pngs and a readme.txt. The readme gives full instructions for Felix. And you should download festival and convert it to a pet using tgz2pet. First rename it from "xxxx.tgz" to "xxxx.tar.gz". Then run tgz2pet xxxx.tar.gz. This will create an xxxx.pet. Click on the pet to install it. Installing festival this way works. Just did it on 4.xx. and Felix started talking:)

Hope that wasn't too complicated.

With kind regards,
vovchik
Back to top
View user's profile Send_private_message 
Minnesota

Joined: 11 Sep 2008
Posts: 313

PostPosted: Thu 01 Jul 2010, 08:03    Post_subject:  Thanks  

vovchik, Joe:
Thanks for the help... it is me.. I am still doing something wrong.... I did get Felix to display...thought I had xcowsay pet loaded on that stick, but must not have. Next started on new clean boot on 4.31, and older machine, can play CD music, and woof-woof, so not a sound problem. Tried several times to build pet. Indicates it runs, still no sound with Felix. Don't need to spend a lot more time helping to solve... I will wait till it is all working...and you guys put out something. Thanks again. Slow learner at this age I guess...only been programming for forty years. Smile
Back to top
View user's profile Send_private_message 
big_bass

Joined: 13 Aug 2007
Posts: 1747

PostPosted: Thu 01 Jul 2010, 11:08    Post_subject:  

Hey Minnesota


try this just paste the code in green in the console and press enter

later you could make it a script called festival-sound-check
and make it executable

*I try to keep things simple so that these little
code snippets can be reused easily with copy and paste



Code:

#! /bin/bash

# Joe Arose 7-01-2010
# call this festival-sound-check

# quick sound check for festival
# also another simple way to do messages
# EOF is better because it allows any character
# to be used without escaping special characters


cat << EOF >/tmp/festival_sound_test.txt
You are testing the sound quality of festival
this message will self destruct in five minutes
EOF

 festival --tts /tmp/festival_sound_test.txt


Code:

#! /bin/bash

# Joe Arose 7-01-2010
# call this espeak-sound-check

# quick sound check for espeak
# also another simple way to do messages
# EOF is better because it allows any character
# to be used without escaping special characters


cat << EOF >/tmp/espeak-sound-check.txt
You are testing the sound quality of espeak
this message will self destruct in five minutes
EOF



 espeak  -s 120 -f /tmp/espeak-sound-check.txt | aplay





I used to build hundreds of pets but puppy kept changing with each version
so I dont make pets any more
learning how to convert packages will be your best programming skill
or if you used slaxer_pup I have it set up so that you just click on any slackware package be it *.tgz *.txz *.tlz *.tbz and it just auto installs without
any conversions it keeps a data base does dependency checking and allows you to uninstall them with a GUI . imagine how many packages you could install easily Very Happy


if you wanted to try the light espeak for size and quality espeak is the winnner

installing these packages is all you need
========================================================
espeak
http://repository.slacky.eu/slackware-12.2/multimedia/espeak/1.40.02/espeak-1.40.02-i486-1as.tgz



portaudio
http://repository.slacky.eu/slackware-12.2/libraries/portaudio/20071207/portaudio-20071207-i486-3as.tgz

jack
http://slackware.oc9.org/slackware-12.2/rkeene/jack-0.100.0-i486-1rsk.tgz
========================================================

_________________
debian wheezy ,linux mint, slackware I use them all and they all have good points
Mint would be best for general users though

Edited_times_total
Back to top
View user's profile Send_private_message 
Minnesota

Joined: 11 Sep 2008
Posts: 313

PostPosted: Thu 01 Jul 2010, 19:42    Post_subject: Thanks for help  

Joe:

Thanks for helping to hold my hand... sorry I am a real novice at all this...
Here is what I did... I downloaded the festival 1.96 file on a W machine, copied it to a stick.

In the \root directory of Luci 206 I am following vovchik procedure to rename and create the pet. Right click the copied file, and rename. Open a terminal window from rt click. A pet is created yet I get the following error. Similar error when I try 4.3.1, so assume I am in the wrong directory.

Did I miss a step to create a specific directory first?
Here is what I am getting.. see attached.

Thanks... slow learner. But willing. Now if you ask me about access or payrolls or school software or databases ... lots of other languages..... Smile)). OH well, world does keep changing. Again thanks for the help.
Error dir.png
 Description   
 Filesize   3.56 KB
 Viewed   1284 Time(s)

Error dir.png

Back to top
View user's profile Send_private_message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Fri 02 Jul 2010, 00:43    Post_subject:  

you need to be in the same directory
move to it with rox
right click and select new/terminal here

. . . or you could download the ready made xpupsay and flite pets and not have to create your own

flite is also in Fluppy

_________________
Puppy WIKI
Back to top
View user's profile Send_private_message Visit_website 
Minnesota

Joined: 11 Sep 2008
Posts: 313

PostPosted: Fri 02 Jul 2010, 07:09    Post_subject: Learning experience  

Lobster:

Quote:
. . . or you could download the ready made xpupsay and flite pets and not have to create your own
flite is also in Fluppy


This is becoming quite a VALUABLE learning experience for me. Sorry I do not understand all the basics. Can you direct me to the Pets?? Or am I not seeing the forest for the trees, or a specific tree in the forest.

Thanks everyone.
Back to top
View user's profile Send_private_message 
big_bass

Joined: 13 Aug 2007
Posts: 1747

PostPosted: Fri 02 Jul 2010, 10:58    Post_subject:  

Hey vovchick

this will be a big help filtering out the mark up code (html)

there is an -m option built in to strip out the markup code Cool

download this example code in html place it in /root
Code:
wget http://www.puppy2.org/slaxer/determination.html



then run this code
Code:
cat /root/determination.html  | espeak -m -s -p35 -s110


==============================
the -m strips of the code from the file
the -s p35 is the frequency (the tone of the voice)
the -s110 is the speed in which the the speaker talks
==============================

if you just want to read this excellent story and enjoy something
http://www.puppy2.org/slaxer/determination.html

Joe

_________________
debian wheezy ,linux mint, slackware I use them all and they all have good points
Mint would be best for general users though
Back to top
View user's profile Send_private_message 
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: Fri 02 Jul 2010, 11:25    Post_subject:  

Dear Joe,

I like the Brooklyn Bridge story. As for espeak, I will give that a try. Festival, which doesn't seem to have that feature, still requires cleanup, but my routine seems to do it. I can then check for either player - and perhaps flitet - in a case/easc constrution and do the appropriate thing.

With thanks and kind regards,
vovchik
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 4 of 6 Posts_count   Goto page: Previous 1, 2, 3, 4, 5, 6 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Cutting edge
Jump to:  

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
[ Time: 0.1177s ][ Queries: 13 (0.0270s) ][ GZIP on ]