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 Wed 26 Nov 2014, 03:47
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
Howto Balabolka on Puppy Linux
Moderators: Flash, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
steve_s


Joined: 26 May 2008
Posts: 1545
Location: Austin, TX, USA

PostPosted: Mon 15 Oct 2012, 17:45    Post_subject:  Howto Balabolka on Puppy Linux
Sub_title: Text to Speech software via wine
 

This is a relatively advanced howto, assuming you know how to use wine and are familiar with the command line to some extent. If something mystifies you, please comment about it. If you've got some insights for us, please comment about it.

I had enjoyed using Balabolka (text to speech software) but didn't find a comparable one in Linux, so decided to give it shot in Wine.

Right now I'm running Saluki with wine installed. Not gonna tell you how to do that; there are a few posts out there about getting wine installed.

I will however mention that, because of how Puppy is structured with a save file and a separate home on the hard drive, I just about always get wine set up, then run winecfg to create the folders that are needed.

Then I move .wine from the /root directory to the home folder/drive and then produce a symlink in /root that directs to .wine. This puts all the size of .wine on the hard drive rather than in the Puppy save file, saving on space.

I had been running Balabolka portable (can be found here among other places) in windows from a flash drive. The version I'm running in Linux now I just dragged and dropped/copied it from the flash drive to the C: drive, Program Files area of wine.

Balabolka runs great like this. Either cd to that directory in wine and run wine balabolka.exe or write a little script to run it then put it on the desktop as a launcher (again, I'm using Saluki so XFCE is a little different than JWM, but the script idea can work with either).

The issue wasn't getting Balabolka to run. The issue is that Balabolka uses the native voices on whatever system you are running. Saluki: no voices for Balabolka. So how to get the Windows voices in wine?

Follow the instructions from here: http://ubuntu-answers.blogspot.com/2010/12/text-to-speach-sapi-on-linux-ubuntu.html#!/2010/12/text-to-speach-sapi-on-linux-ubuntu.html including the proposed work around. Of course, its in Ubuntu and we've already got wine installed, so there is some stuff you can skip at the beginning.

That seems to take care of getting the voices there for Sapi5. But for more voices I went to Open-sapi from here.

I downloaded uk_eng, us_eng and sapi4 exe files to /root/.wine/drive_c/Program Files. Then I cd'd to that directory and installed them using wine and the exe file, hitting yes on each of them.

However, in Saluki, wine yelled at me, saying I didn't have libmpg123.so.0 so I downloaded and installed it from here. Then, although wine still yelled at me, they seemed to install fine.

After sapi4 installed and those voices added, I now have Balabolka running with a whole list of choices for voices in Sapi4 and 3 voices in Sapi5. I'm open to suggestions on getting more voices and/or recomended voices.

Attached should be a screenshot and an mp3 example file if I got it to upload. Enjoy and post back comments, recomendations and questions.
Back to top
View user's profile Send_private_message Visit_website 
steve_s


Joined: 26 May 2008
Posts: 1545
Location: Austin, TX, USA

PostPosted: Mon 15 Oct 2012, 18:00    Post_subject:  

Here's a screenshot of Balabolka on Saluki...
balabolka1.png
Description 
png

 Download 
Filename  balabolka1.png 
Filesize  745.88 KB 
Downloaded  602 Time(s) 
Back to top
View user's profile Send_private_message Visit_website 
steve_s


Joined: 26 May 2008
Posts: 1545
Location: Austin, TX, USA

PostPosted: Mon 15 Oct 2012, 18:06    Post_subject:  

And the mp3 that was exported from that screenshot...

Had to zip it to upload it...
the-mucker.zip
Description 
zip

 Download 
Filename  the-mucker.zip 
Filesize  846.33 KB 
Downloaded  507 Time(s) 
Back to top
View user's profile Send_private_message Visit_website 
FBnil

Joined: 21 Dec 2012
Posts: 1

PostPosted: Fri 21 Dec 2012, 12:51    Post_subject:  In case the mp3's produced by SAPI4 voices have no sound
Sub_title: Balabolka v2.5.0.533 and SAPI4 control tags
 

Prepend

\Vol=32768\

(including the backslashes) to the text you want to convert to audio.
Balabolka seems to reset the volume to 0 if you use SAPI4 voices when saving audio files.

More information about SAPI4 control tags: http://products.timehouse.fi/sapidoc.asp?con=8
Back to top
View user's profile Send_private_message 
steve_s


Joined: 26 May 2008
Posts: 1545
Location: Austin, TX, USA

PostPosted: Tue 25 Dec 2012, 10:08    Post_subject: Re: In case the mp3's produced by SAPI4 voices have no sound
Sub_title: Balabolka v2.5.0.533 and SAPI4 control tags
 

FBnil wrote:
Prepend

\Vol=32768\

(including the backslashes) to the text you want to convert to audio.
Balabolka seems to reset the volume to 0 if you use SAPI4 voices when saving audio files.

More information about SAPI4 control tags: http://products.timehouse.fi/sapidoc.asp?con=8


Thanks for that!
Back to top
View user's profile Send_private_message Visit_website 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Puppy Projects
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.0577s ][ Queries: 13 (0.0082s) ][ GZIP on ]