Active Topics

 


Reply
Thread Tools
Posts: 5 | Thanked: 0 times | Joined on Mar 2010 @ MIlton Keynes, England
#1
i have installed flite on my n900, want to use it with mapper to provide voice turn by turn instructions. I have tried to test flight by opening th xterminal and typing: flite "hello world"

I receive no error message, just a slight crackle from the speakers.

I presume I need to install something else too, but not sure what. Anyone got any ideas?

Thanks
Paul
 
woody14619's Avatar
Posts: 1,455 | Thanked: 3,309 times | Joined on Dec 2009 @ Rochester, NY
#2
I have the same issue, and have been looking around for a while for a solution. It appears the current version simply doesn't work right. The odd part is, if you output to a wave file, then use play_sound to play that wave, it works fine... It's only when flite itself it string to play the sound output.
 

The Following User Says Thank You to woody14619 For This Useful Post:
woody14619's Avatar
Posts: 1,455 | Thanked: 3,309 times | Joined on Dec 2009 @ Rochester, NY
#3
Well, I have a hack solution for right now that works. It's not super pretty, but it makes the current version of flite work (AND it works with maemo-mapper)!

The solution is to open an Xterm and do the following. You'll need flite and gainroot already installed.

Code:
root
cd /usr/bin
mv flite flite-hack
cat >>flite<<EOF
#!/bin/sh
/usr/bin/flite-hack "$@" /tmp/tmpplay.wav && /usr/bin/play-sound /tmp/tmpplay.wav >/dev/null
/bin/rm /tmp/tmpplay.wav
EOF
chmod a+x flite
Not the most elegant solution, and it won't work for very large strings of text (because /tmp isn't that big AND play-sound hand issues with large wave files), but it works well for mapper!
 

The Following 2 Users Say Thank You to woody14619 For This Useful Post:
Posts: 151 | Thanked: 82 times | Joined on Sep 2008
#4
Originally Posted by woody14619 View Post
Well, I have a hack solution for right now that works. It's not super pretty, but it makes the current version of flite work (AND it works with maemo-mapper)!

The solution is to open an Xterm and do the following. You'll need flite and gainroot already installed.

Code:
root
cd /usr/bin
mv flite flite-hack
cat >>flite<<EOF
#!/bin/sh
/usr/bin/flite-hack "$@" /tmp/tmpplay.wav && /usr/bin/play-sound /tmp/tmpplay.wav >/dev/null
/bin/rm /tmp/tmpplay.wav
EOF
chmod a+x flite
Not the most elegant solution, and it won't work for very large strings of text (because /tmp isn't that big AND play-sound hand issues with large wave files), but it works well for mapper!
Has anyone got flite working on the N900?

I'm trying to turn by turn voice working in "maemo mapper"
 
woody14619's Avatar
Posts: 1,455 | Thanked: 3,309 times | Joined on Dec 2009 @ Rochester, NY
#5
Uh... Which part of "works well for mapper" is confusing? Doing the commands I listed makes flite work well with maemo mapper. (Just cut/paste them into a terminal window and you're good to go...) I've been using it with voiced turn-by-turn for weeks now.

I just wish either 1.2 would launch, or the mapper folks would fix the package dependencies so I can update to the current version in devel.
 
Posts: 151 | Thanked: 82 times | Joined on Sep 2008
#6
Originally Posted by woody14619 View Post
Uh... Which part of "works well for mapper" is confusing? Doing the commands I listed makes flite work well with maemo mapper. (Just cut/paste them into a terminal window and you're good to go...) I've been using it with voiced turn-by-turn for weeks now.

I just wish either 1.2 would launch, or the mapper folks would fix the package dependencies so I can update to the current version in devel.

I have it working now... Needed to make some slight modifications to your script. (had to use the full path for each command).

Thanks for posting this solution.

I'm also eagerly awaiting updates to this
 
woody14619's Avatar
Posts: 1,455 | Thanked: 3,309 times | Joined on Dec 2009 @ Rochester, NY
#7
FYI, I PMed the garage owner for flite/libflite and got a basic response that he was not working on it. In fact, he doesn't even own an N900, and compiled this originally for the N800 (where it works fine apparently as is). He threw it through the builder for the N900 and it compiled, but he had no way to test it, and no way to debug it. (Thus why it's still in devel vs testing or extras.) So it may be a while before it gets picked up and properly fixed to do audio output properly on the N900.

And before anyone get's upset about this, personally I think it's great that he even bothered to try to compile it for N900, since he doesn't even own one. At least we have a work-around solution for now, vs if he had not put in that effort, we would have nothing right now. So, don't direct anger at him for not working on it!

If someone is interested in doing this, please do hit the garage and ask to be added to the project. I'm sure he'd be happy to let someone update it to work properly for the N900.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 11:43.