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 Tue 26 Sep 2017, 05:29
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
espeakedit
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [17 Posts]   Goto page: 1, 2 Next
Author Message
ariel


Joined: 03 Jul 2009
Posts: 141

PostPosted: Sun 31 Jan 2010, 19:01    Post subject:  espeakedit
Subject description: editor for espeak
 

project homepage: http://espeak.sourceforge.net/


This pet package installs:

espeak
espeakedit
mbrola voice en1



At first I wanted to create a pet just for espeakedit, but I saw that previous versions of espeak didn't work with 1.42.04. This is the reason why I have added espeak too. If you are looking for espeak only click Arrow here

The aim of espeakedit is to modify the stress in words that may be spoken in the wrong way by espeak or create new words and phonetic rules. If you are game, you may even add a new language altogether. Feel free to share your improvements if you like.

I have put in the package the mbrola voice en1 to easily enjoy its very good quality. If you look for other mbrola voices launch espeakedit, select help, see instructions about mbrola.

Also, in the pet you can find a small script for idlers, which reads txt and html files with mbrola voices without typing long commands. However, remember only en1 is present after download. As a bonus the script may convert txt and html files into mp3. It uses lame, which should be installed in all pups equal and above 4.0 series. To launch type eread in a terminal.

At last a quick start guide is placed in /root/my-documents and an entry is added to the start menu.

tested in 4.2.0, 4.3.1, 5.0 (lupu) but it may work in other versions too.
To stay on the safe side if you have previous versions of espeak uninstall them before installing this package.



Arrow download espeakedit (21396145 bytes)


checksum: a6275ecbf2fb4ab14480d082c4b4aa98
espeak_espeakedit_mbrola-1.42.04.pet.torrent.tar.gz
Description 
gz

 Download 
Filename  espeak_espeakedit_mbrola-1.42.04.pet.torrent.tar.gz 
Filesize  13.17 KB 
Downloaded  263 Time(s) 
eread_0.7.1.pet
Description  version for the unsighted
pet

 Download 
Filename  eread_0.7.1.pet 
Filesize  6.61 KB 
Downloaded  575 Time(s) 
screenshot.jpg
Description  screenshot of espeakedit
jpg

 Download 
Filename  screenshot.jpg 
Filesize  62.29 KB 
Downloaded  656 Time(s) 

Last edited by ariel on Tue 11 Apr 2017, 12:42; edited 17 times in total
Back to top
View user's profile Send private message Visit poster's website 
Lobster
Official Crustacean


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

PostPosted: Mon 01 Feb 2010, 00:12    Post subject:  

Tried in 4.31
Smile

The ereader worked OK from the command line
but no sound from the editor

Anyone else have better luck?

_________________
YinYana AI Buddhism
Back to top
View user's profile Send private message Visit poster's website 
mwestlund

Joined: 09 Jun 2006
Posts: 118

PostPosted: Mon 01 Feb 2010, 01:03    Post subject:  

I been working with TTS for about four years. I commute 75min one way to work and use TTS to create audio books. I think projects like this are great. I use Cepstal David for my TTS needs. $30. This is the only piece of software I have purchased for my computer in four years as well. I'd love to help your project and see TTS as a great resource that is very understood and appreciated. -Mark
Back to top
View user's profile Send private message 
ariel


Joined: 03 Jul 2009
Posts: 141

PostPosted: Mon 01 Feb 2010, 09:51    Post subject:  

hi lobster

Oops! I have the pc so crammed with so many libraries that I've forgot some. Thanks for your report Very Happy All those who have already downloaded the pet should install the patch, anyway.

I'll upload the completely fixed pet as soon as possible.

I've testet the package with 4.3.1 and it's all right now.

@ mwestlund

hi mark, I must say that I am not in the espeak project, I wish I was. I'm only a supporter that would like to contribute to spread this great application as far as possible because I find it useful. And I think that if more and more people get involved then we will see espeak improve faster. At the same time puppy is as great a project and so you may have two instead of just one. not bad at all.

I'm glad that you're willing to contribute to espeak and I hope many other puppians will follow.

cheers

Last edited by ariel on Fri 05 Feb 2010, 04:48; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
ariel


Joined: 03 Jul 2009
Posts: 141

PostPosted: Mon 01 Feb 2010, 12:33    Post subject:  

...in the meantime i've found out that the script eread had some problems too, even after the patch. now it's fixed.

later on i'll upload a single pet with all things running properly but for now everybody should download patch and ereadpatch separately.


Arrow ereadpatch

Last edited by ariel on Fri 05 Feb 2010, 04:50; edited 2 times in total
Back to top
View user's profile Send private message Visit poster's website 
Lobster
Official Crustacean


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

PostPosted: Tue 02 Feb 2010, 01:28    Post subject:  

Hi there - many thanks Wink

added patch
ereader will now read a text file
but still not speak what is in the top left speak box
What am I dong wrong?

_________________
YinYana AI Buddhism
Back to top
View user's profile Send private message Visit poster's website 
ariel


Joined: 03 Jul 2009
Posts: 141

PostPosted: Tue 02 Feb 2010, 06:41    Post subject:  

unfortunately you are not doing anything wrong. the fact is that I left out some more libraries Rolling Eyes

this because I had some trailing libs that made all work for me. now I have tested espeakedit with new patch in a brand new fs and it should be fine with new patch. in case it's not let me know...

anyway you will see that `speak` should be used after `translate`

Everybody is encouraged to download the new patch which should be added to the old one. here you can also find an updated eread script that will place all the converted mp3 files in the current directory instead of leaving them scattered in the subdirectories. you can unistall the previuos ereadpatch, if you have installed it before.

if no other bug will be reported I will upload a single new pet soon
Back to top
View user's profile Send private message Visit poster's website 
ariel


Joined: 03 Jul 2009
Posts: 141

PostPosted: Fri 05 Feb 2010, 04:43    Post subject:  

new pet uploaded in the first post. it merges all previous patches. in addition the script eread now reads and converts html other than txt files.

here attached the new script for those who don't want to download all the package again.
eread.pet
Description 
pet

 Download 
Filename  eread.pet 
Filesize  1.33 KB 
Downloaded  535 Time(s) 
Back to top
View user's profile Send private message Visit poster's website 
ariel


Joined: 03 Jul 2009
Posts: 141

PostPosted: Wed 10 Feb 2010, 18:06    Post subject:  

I've uploaded an enhanced version of eread. I have added several functions. Well, what we've got here is something you'll love it or hate it. I've started to build a tiny CLI application that could simplify the use of mbrola voices and ended up creating a small file browser. Many would say that there was no need of another CLI browser and nobody would use it. But what I actually had in mind was a tool for reading and converting txt files. I just wanted a fast CLI way to move through directories with easy access to different voices/languages.

The result is this version of eread. Not only can it read and convert text files easily into mp3, but it can also open a terminal in remote paths that you have even forgot that are there. It can also:

-open images
-'read' documents. That is to say, open docs with the suitable application (Open Office)
-'read' music (play files with gxine)

all this without leaving the keyboard for the mouse. This is the reason why I find it so fast.

And you may add whatever extension or application to open if you modify the script. It's not a final version. Any comments are welcome. If anybody is interested I'll write some documentations. For now you can find a help menu in the navigation menu (the one with the green-colored path) typing H (uppercase) and enter.


Last but not least. At some point I realized that I had in front of me a tiny but usable CLI-file browser. And what if instead of printing the output on the screen we redirect it to espeak? I thought that the blind can navigate the content of their directories with a simple CLI browser of few kilobytes and launch music files, read ebooks or open whatever application is in their computer. In fact, every file that should be printed to the screen is associated to a number that is read by eread (see screenshot). When you have listened to the number associated to the file you are interested in, you just press CTRL + C to stop espeak from reading the list and then type that number. It should be fast with the numeric pad of the keybord. Furthermore, you can search in directories jammed with files with a search function that allows to read every file that matches the string you have chosen to search. Three characters most of the time are enough. And to browse faster you can store to a file the current directory to retreive it later with ease.

Only one thing. To have a positive experience from the reading of the list of files, with espeakedit you should change something in the en_list file (or your language_list file for any other language):

# haS $max3

should be turned into

# ko@-*@sp'Ond,tu: $pause

the phonetic translation of 'correspond to'. It have to be associated to the graphic character '#'. For other languages the translation is obviously different.

And to each number you should add $pause

And then compile the changes.


I don't know if this could be really useful. I've never used applications like festival and I can't make a comparison. I need the opinion of some testers on this. If it is worth for anybody I'll give it a further go to improve it.

Notes for users.
-eread creates a directory named eread-converted in /root/my-documents where all the converted files will be put after conversion.

-a hidden directory named .eread is installed in /root where some files needed to operate are being stored.

-as I am still tinkering with the script, to open a non-txt file you should 'read' it with read option r. If it doesn't work choose the file from the 'lower directory' option L (lowercase). If it still doesn't open then the extension is not inserted. You can do it manually adding it in the script.
eread-screenshot.jpg
Description 
jpg

 Download 
Filename  eread-screenshot.jpg 
Filesize  61.75 KB 
Downloaded  551 Time(s) 
eread_0.6.1.pet
Description  this is the version designed for the blind
pet

 Download 
Filename  eread_0.6.1.pet 
Filesize  5.86 KB 
Downloaded  520 Time(s) 
eread_0.6.0.pet
Description 
pet

 Download 
Filename  eread_0.6.0.pet 
Filesize  5.57 KB 
Downloaded  503 Time(s) 

Last edited by ariel on Sat 13 Feb 2010, 11:13; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
ariel


Joined: 03 Jul 2009
Posts: 141

PostPosted: Sat 13 Feb 2010, 08:32    Post subject:  

new build.

eread 0.7.1 for the blind. less chatty and then faster.

-interface speaks with mbrola now
-more convenient navigation
-you can read a file from the l option with current language
-some bugs are fixed
Back to top
View user's profile Send private message Visit poster's website 
amigo

Joined: 02 Apr 2007
Posts: 2590

PostPosted: Sat 13 Feb 2010, 09:40    Post subject:  

Nice work -but are all those TABS in the script necessary -I mean do the affect the output in some way?
Does this require any changes to the espeak sources?
Back to top
View user's profile Send private message 
ariel


Joined: 03 Jul 2009
Posts: 141

PostPosted: Sat 13 Feb 2010, 10:51    Post subject:  

Quote:
Nice work -but are all those TABS in the script necessary -I mean do the affect the output in some way?


hi there, thanks. I hope it could be useful to somebody, anyway.

in my personal view tabs help give a better understanding of the script but don't affect it's execution in any manner.

Quote:

Does this require any changes to the espeak sources?


no. espeak remains untouched. I have only suggested in one of my posts to modify the rules of the pronunciation of the hush symbol # with espeakedit. but to do this you just need to click on a button of the gui of espeakedit named compile. that's all. it takes less than one second. but this is not even necessary. it should only result in a less mechanical voice when reading long lists of files. you may even change # in a pause if you want, or leave it unchanged.

the output of the version for the blind, at the moment is messy, but only because the script is a work in progress and I want to see what's going on. of course it could be cleansed.

by the way, I forgot to say that in the head of the script you can easily modify the speed of the reading of items.
Back to top
View user's profile Send private message Visit poster's website 
amigo

Joined: 02 Apr 2007
Posts: 2590

PostPosted: Sat 13 Feb 2010, 11:59    Post subject:  

Code:
echo
                                                            #say="current path."
                                                            #speakit
                                                            echo
                                                            cpath=`pwd`
                                                            #say="$cpath"
                                                            #speakit
                                                            echo


Oh, I agree that indenting is essential to readability in good coding, but here the above comes out with *twenty* TABS of spacing which means I must scroll horizontally to read anything that follows. What crazy editor are you using?
Back to top
View user's profile Send private message 
ariel


Joined: 03 Jul 2009
Posts: 141

PostPosted: Sat 13 Feb 2010, 12:37    Post subject:  

this crazy editor is geany with automatic indentation. like I said, I used tabs because in *my view* the script is more readable
Back to top
View user's profile Send private message Visit poster's website 
Pelo


Joined: 10 Sep 2011
Posts: 12557
Location: Mer méditerrannée (1 kms°)

PostPosted: Tue 04 Apr 2017, 21:44    Post subject: 2017, that works well ! i will improve my english..  

2017, that works well ! i will improve my english..
article en français
anglais.jpg
 Description   With Lucid 528
 Filesize   53.1 KB
 Viewed   79 Time(s)

anglais.jpg


_________________
Passenger Pelo ! don't ask him to repair the aircraft. Don't use him as a demining dog .... pleeease.
Back to top
View user's profile Send private message Yahoo Messenger 
Display posts from previous:   Sort by:   
Page 1 of 2 [17 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Jump to:  

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
[ Time: 0.0585s ][ Queries: 15 (0.0049s) ][ GZIP on ]