The time now is Wed 19 Jun 2013, 23:50
All times are UTC - 4 |
| Author |
Message |
Trobin
Joined: 18 Aug 2005 Posts: 872 Location: BC Canada
|
Posted: Mon 05 Sep 2011, 15:54 Post subject:
|
|
Should you have a text file that you wish made into a MP3 sound file, and have espeak installed, this will do the job
| Code: | | espeak -f file.txt --stdout | lame - file.mp3 |
_________________ http://speakpup.blogspot.com
|
|
Back to top
|
|
 |
Trobin
Joined: 18 Aug 2005 Posts: 872 Location: BC Canada
|
Posted: Sat 10 Sep 2011, 03:19 Post subject:
|
|
This is an excersize to see if I can use Edbrowse to download a file. To keep the entry short, I will only list the essential bits
Commands used
b - browse internet - goto url
g - goto the first url/link on last line
w - save to file
{ } url or link
# edbrowse
b www.puppylinux.com - browse www.puppylinux.com
5549
430
29p - print to screen line 29
{Download Puppy}
g --go to Download Puppy page
18570
8422
30p --print to screen line 30
{ftp//distro.ibiblio.org/puppylinux/} | Optional! Make
g --go to above link
ftp download
ncftpget: use _R if you wantthe whole directory tree
ftp useage error
(Note - I had to install nftpd 3.20 to get this far)
# edbrowse
b www.puppylinux.com - browse www.puppy linux.com
5549
430
29p -- printy to screen line 29
{Download Puppy}
g --goto Download Puppy page
18570
8422
34p -- print to screen line 34
{http??distro.ibiblio.org/puppylinux}
g -- go to linked page
20535
creatreElement defaulty script
all.tags default script
.
6457
15p -- print to screen line 15
{pet_packages-3/} | date and time etc.
g -- go to above link
119389
creatreElement defauly script
all.tags default script
.
44096
54p -- print to screen line 54 which happens to be linked to a program
{beaver-0.27.pet} | filetype etc.
g -- go to above link - start downloading program to buffer
.
binary data
134285
w beaver.pet -- save buffer as file
134285
The file was saved in the root directory.
_________________ http://speakpup.blogspot.com
|
|
Back to top
|
|
 |
Trobin
Joined: 18 Aug 2005 Posts: 872 Location: BC Canada
|
Posted: Sun 11 Sep 2011, 16:03 Post subject:
|
|
The following is my attempt to download a text file from Project Gutenberg, an archive of freely available files located at
http://www.gutenberg.org
I tried with both Lynx and Edbrowse
With Lynx
| Quote: | g http:/www.gutenberg.org [enter]
(9) Book Search [enter]
Use down arrow to move to search field
Type “The Scarlet Pimpernel” into search field
Use arrow key to move to search button
(9) Download [enter]
Use down arrow to move to and highlight - 23 Plain Text UTF-8
d [enter]
1 save to disc [enter]
enter filename or select default [enter]
q [enter] to quit Lynx
locate file in ~/root and unzip |
The above attempt was successful and I have a copy of the Scarlet Pimpernel.
The following attempts were with Edbrowse
This was with a search for The Scarlet Pimpernel
| Quote: | edbrowse
edbrowse ready
b http://www.gutenberg.org
17504
4560
11p
downloads} · {Recently added} · {Report errors}
g1
20964
4451
7p
{Book Search}
g
8320
createElement default div
..
createElement default script
644
15p
{Titles} |Search by title.
g
15056
createElement default div
..
createElement default script
1898
12p
Search Titles: <> <Search>
i = The Scarlet Pimpernel
Search Titles: < The Scarlet Pimpernel> <Search>
i*
submitting form
warning: http error 404, Not Found
807
162 |
the “i” command enters text into the first input box
the “i*” command submits the form and activates the first button in this case <search>
The file could not be found
So I thought I’d try another way, getting the file listed and page through to The Scarlet Pimpernel. It mifght have worked, but I tried with a few file with out any success. The following is an attempt to get a file -- any file.
| Quote: | edbrowse
edbrowse ready
b http:/gutenberg.org
17504
4560
11p
downloads} · {Recently added} · {Report errors}
g1 -- goto first url/link
20964
4451
7p
{Book Search}
g
8320
createElement default div
..
createElement default script
644
15p
{Titles} |Search by title.
g
15055
createElement default div
..
createElement default script
1898
13p
{Sort Alphabetically}
g
14140
createElement default div
..
createElement default script
1883
42p
| {Next}
g
13837
createElement default div
..
createElement default script
1934
43p
{Next}
g
13429
createElement default div
..
createElement default script
1471
43p
{Next}
g
13487
createElement default div
..
createElement default script
1534
43p
42p
{Next}
g
13650
createElement default div
..
createElement default script
1764
20p
{Abenaki Indians} |Frederic Kidder
g
16018
createElement default div
..
createElement default script
2157
11p
* {Download}
g
16033
createElement default div
..
createElement default script
2157
label download is not found |
Each {next} represents a page. I didn’t have the patience to page through the entire list.
Now, any decent cli test readers out there?
_________________ http://speakpup.blogspot.com
|
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 3845
|
Posted: Sun 16 Oct 2011, 03:32 Post subject:
|
|
I just petted a cutdown version of espeak that is < 400kb
http://www.murga-linux.com/puppy/viewtopic.php?t=72589
I also wrote a program called reader that will output a file one line at a time as both text and audio ... it will even strip the tags from html
or if you don't need to see the text at all, there is speak_files
there are a couple of other scripts in there that are designed for accessibility: speak_clipboard and speak_input
_________________ Puppy Web Desktop Now with pet packages - Pet Packaging 100 & 101
|
|
Back to top
|
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|