Home PageFacebookRSS News Feed
PocketGPS
Web
SatNav,GPS,Navigation
Pocket GPS World - SatNavs | GPS | Speed Cameras: Forums

Pocket GPS World :: View topic - A solution for TTS pronunciation for Go models (Loquendo)
 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log in for private messagesLog in for private messages   Log inLog in 

A solution for TTS pronunciation for Go models (Loquendo)
Goto page Previous  1, 2, 3, 4, 5 ... 15, 16, 17  Next
 
Post new topic   Reply to topic    Pocket GPS World Forum Index -> TomTom Portable Navigation Devices
View previous topic :: View next topic  
Author Message
MARViN2003
Regular Visitor


Joined: Nov 27, 2005
Posts: 132
Location: Stroud, Gloucestershire

PostPosted: Wed May 26, 2010 3:48 pm    Post subject: Reply with quote

I think your 4404 isn't working because the 0 is inside the bracket in your Rule 8
Back to top
View user's profile Send private message Visit poster's website
layingback
Regular Visitor


Joined: Feb 12, 2009
Posts: 124

PostPosted: Wed May 26, 2010 4:10 pm    Post subject: Reply with quote

Thanks for taking a look.

The 0 is inside so that 440 becomes 4-40. So I don't think it's that because it should be detected by rule 4 not 8. Also it is being said as 4404, ie it is not matching in the first place.

Also I've found that the ; at the end does not work correctly in all the other cases, when there is a street name.

So I think I'm stuck as far as this method goes. Without being able to replace 'M' with 'M ' to turn off \s.

Only other route would be avoid \s altogether. Which means using 'em', 'aa' and 'be' for road names. I know that works, but I had dropped it as the number of \Nx's was getting cumbersome. But even so it will mean 36 rules as I'll need 1 set for each of M, A and B. (Well actually a little less that 27, as I don't need to worry about 4 digit M roads.) Wonder how many it can stand?
_________________
Go Premium X / Go 1005
Back to top
View user's profile Send private message Visit poster's website
MARViN2003
Regular Visitor


Joined: Nov 27, 2005
Posts: 132
Location: Stroud, Gloucestershire

PostPosted: Wed May 26, 2010 5:48 pm    Post subject: Reply with quote

I think the \Nx is probably a red herring, as the original US code had o rather than oh; It was replaced with oh to stop TT saying west (which was a by product of having o = west and w = west for french / canadian directions)

I've been playing with ohs, double ohs, hundreds and thousands...

Code:
"(^|[ \t]+)(M|A|B)[ \-]*([1-9])([1-9])([1-9])([1-9])" = "\1 \s \2 \3_ \4_ \5_ \6_"
"(^|[ \t]+)(M|A|B)[ \-]*([1-9])0([1-9])([1-9])" = "\1 \s \2 \3_ oh \4_ \5_"
"(^|[ \t]+)(M|A|B)[ \-]*([1-9])([1-9])0([1-9])" = "\1 \s \2 \3_ \4_ oh \5_"
"(^|[ \t]+)(M|A|B)[ \-]*([1-9])([1-9])([1-9])0" = "\1 \s \2 \3_ \4_ \5_ oh"
"(^|[ \t]+)(M|A|B)[ \-]*([1-9])0([1-9])0" = "\1 \s \2 \3_ oh \4_ oh"
"(^|[ \t]+)(M|A|B)[ \-]*([1-9])([1-9])00" = "\1 \s \2 \3_ \4_ double oh"
"(^|[ \t]+)(M|A|B)[ \-]*([1-9])00([1-9])" = "\1 \s \2 \3_ double oh \4_"
"(^|[ \t]+)(M|A|B)[ \-]*([1-9])000" = "\1 \s \2 \3_ thousand"
"(^|[ \t]+)(M|A|B)[ \-]*([1-9])([1-9])([1-9])" = "\1 \s \2 \3_ \4_ \5_"
"(^|[ \t]+)(M|A|B)[ \-]*([1-9])0([1-9])= "\1 \s \2 \3_ oh \4_"
"(^|[ \t]+)(M|A|B)[ \-]*([1-9])([1-9])0" = "\1 \s \2 \3_ \4_ oh"
"(^|[ \t]+)(M|A|B)[ \-]*([1-9])00" = "\1 \s \2 \3_ hundred"
Back to top
View user's profile Send private message Visit poster's website
layingback
Regular Visitor


Joined: Feb 12, 2009
Posts: 124

PostPosted: Wed May 26, 2010 5:56 pm    Post subject: Reply with quote

What's the underline for, any idea? I couldn't see a pattern, so ditched that as well. ;-)

Hundreds and thousands can be dealt with same as 10-99, just pass it all in one parameter (\3 in your case I think) and let Kate et al sort it out. Saves a rule or 2.

I've made up my new \s free version, but not yet had time to test. 29 rules!
_________________
Go Premium X / Go 1005
Back to top
View user's profile Send private message Visit poster's website
MARViN2003
Regular Visitor


Joined: Nov 27, 2005
Posts: 132
Location: Stroud, Gloucestershire

PostPosted: Wed May 26, 2010 9:36 pm    Post subject: Reply with quote

I think the underline tells it to say the numbers as separate digits rather than together, ie. 431 as \1 \2 \3 would be four hundred and thirty one, but \1_ \2_ \3 would be four-three-one.

I just left 1 - 99 out completely so kate sorts it out, just added hundred and thousand so that they arn't said as individual digits. All other 3 and 4 digit numbers are.
Back to top
View user's profile Send private message Visit poster's website
layingback
Regular Visitor


Joined: Feb 12, 2009
Posts: 124

PostPosted: Wed May 26, 2010 10:04 pm    Post subject: Reply with quote

Quote:
\1_ \2_ \3 would be four-three-one
Yeah, that's what I thought. But just \1 \2 \3 achieves the same thing. So wondered if it was something else.

In same vein, I'm wondering how TT says "em" in A239M. Or the A for that matter. Perhaps the \s isn't really needed either???

Quote:
just added hundred and thousand so that they aren't said as individual digits
Agreed. But what I was trying to say was if you place them altogether in 1 parameter, then it would be, say, 4000 which would be said as four thousand. That's what I was doing with the 0 inside the parentheses. But I've just reminded myself that \\0 in preg_replace gives access to entire string, so there may be a chance to reduce all those cases which can be left to Kate to a single rule that replaces with \0...
_________________
Go Premium X / Go 1005
Back to top
View user's profile Send private message Visit poster's website
layingback
Regular Visitor


Joined: Feb 12, 2009
Posts: 124

PostPosted: Fri May 28, 2010 1:26 pm    Post subject: Just an update Reply with quote

Not made any further progress on TT per se as I need my TT working this weekend Very Happy, but have updated my app. You can now enter new rules and/or edit existing ones. (To delete one, just erase the rule.)

Each rule is tested against a static set of 15 commands, the last one of which is a nonsense command, just to ensure that you aren't passing everything! Wink Matches are listed after each command. (You only want 1 match, unless we can determine that TT always takes 1st/last in case of a dup.)

Nothing is saved after you leave the app, but the suitably formatted .rex file entry is available at the bottom of the page to just cut-n-paste into TT.

The start point rule set is my latest from 2 days ago, with the semi-colon announced when road number without a road name is used to confirm a roundabout exit (as in "take the exit, A-3-2-5-;"), and 0 in any of last 2 positions of a 4 digit road number is pronounced TT style (as in A4404 is A-four-thousand-and-four, and similar for A4440, A4004 & A4400). I know cause of 1st issue, but the the 2nd as yet.
_________________
Go Premium X / Go 1005
Back to top
View user's profile Send private message Visit poster's website
keithjeffrey
Lifetime Member


Joined: Apr 07, 2006
Posts: 249
Location: Kent , England

PostPosted: Sat May 29, 2010 4:54 pm    Post subject: Reply with quote

mikealder wrote:
geddit wrote:
Or have I missed the obvious.

Quite possibly, the file you need to re-name is in the Western_Europe map folder and is called:

cphoneme.dat

Which you rename to:

cphoneme.old


The other part of the fix doesn't seem to apply to the European based devices as the file that MVL mentioned to add/ edit phrases in simply isn't present on a European machine - Renaming the file in the map folder though will make a noticable difference - Mike


Now I apologise in advance for the question I am about to ask , as I am sure that it is me being thick................but here I go anyway.

When renaming cphoneme ( which is a DAT file ) , do I rename it to cphoneme.old ( which is STILL a DAT file )

Because the way I read the above quote is that it is originally a DAT file but is then renamed to an OLD file.

Apologies again for this , but I just want to be sure that I am not going to cock something up.
_________________
Keith
TomTom GO 730T App 8.392 (1909/091109) , W and CE 2GB v835.2419
Back to top
View user's profile Send private message
layingback
Regular Visitor


Joined: Feb 12, 2009
Posts: 124

PostPosted: Sat May 29, 2010 5:13 pm    Post subject: Reply with quote

You can rename it to anything - as long as you stick to letters and numbers plus . _ or - and not much else.

The idea is to fool TT into thinking that the file is missing/deleted without actually deleting it lest you wish one day to restore it.

The suggested name is so that you, not TT, isn't fooled when it comes to finding it again should you wish to do the aforesaid rename to its original name trick. Wink
_________________
Go Premium X / Go 1005
Back to top
View user's profile Send private message Visit poster's website
keithjeffrey
Lifetime Member


Joined: Apr 07, 2006
Posts: 249
Location: Kent , England

PostPosted: Sat May 29, 2010 5:18 pm    Post subject: Reply with quote

layingback wrote:
You can rename it to anything - as long as you stick to letters and numbers plus . _ or - and not much else.

The idea is to fool TT into thinking that the file is missing/deleted without actually deleting it lest you wish one day to restore it.

The suggested name is so that you, not TT, isn't fooled when it comes to finding it again should you wish to do the aforesaid rename to its original name trick. Wink


Thanks for that ! Very Happy
_________________
Keith
TomTom GO 730T App 8.392 (1909/091109) , W and CE 2GB v835.2419
Back to top
View user's profile Send private message
layingback
Regular Visitor


Joined: Feb 12, 2009
Posts: 124

PostPosted: Sat May 29, 2010 5:25 pm    Post subject: Reply with quote

Did a big test of TT changes today, made worse by travelling along a wilderness M road - the M3(!) - which is so far out in the boonies Very Happy that it is totally void of RDS Traffic carrying stations, but which was filled to total capacity by vehicles.

But the voice worked as expected, just the semi-colon pronunciation getting a bit wearing on all the roundabouts on our off-M detour. SWHTBO seemed to find it quite amusing, and felt it "added something". Laughing But I do seem to have introduced a pause after "towards .... " which will need to be cured - once the cause has been located.

Will have to try a new technique or 2 that I've thought up, because having the road numbers read "correctly" was such an improvement. I didn't actually notice the road numbers being read at all, I just heard them. I guess they just seemed right. Normally the "3 thousand 4 hundred and ... " stuff just grates.
_________________
Go Premium X / Go 1005
Back to top
View user's profile Send private message Visit poster's website
layingback
Regular Visitor


Joined: Feb 12, 2009
Posts: 124

PostPosted: Sat May 29, 2010 5:29 pm    Post subject: Reply with quote

keithjeffrey wrote:
Thanks for that ! Very Happy


NP! Seriously though, what I do is rename to something like:

cphoneme.orig.dat

that I can recognise and easily convert back at any time down the road, without having to reference back somewhere to find out what it was originally called.
_________________
Go Premium X / Go 1005
Back to top
View user's profile Send private message Visit poster's website
MARViN2003
Regular Visitor


Joined: Nov 27, 2005
Posts: 132
Location: Stroud, Gloucestershire

PostPosted: Sun May 30, 2010 4:43 pm    Post subject: Reply with quote

I don't seem to get the 'comma' problem, I think it is because I made the rules only look for the letters and digits - I removed the last ([^0-9].*) and put the 4 digit rules before the 3 digit ones.

As soon as a rule is met it seems to stop looking.
Back to top
View user's profile Send private message Visit poster's website
layingback
Regular Visitor


Joined: Feb 12, 2009
Posts: 124

PostPosted: Sun May 30, 2010 9:49 pm    Post subject: Reply with quote

I get the older comma problem with your rules, so I suspect that it is due to another TT setting being enabled/disabled.

You reckon that first match is only match? I haven't tested, but will try to confirm your assertion, as this may potentially make some of the rules simpler. To date I've been working on 1 match per rule to avoid this.
_________________
Go Premium X / Go 1005
Back to top
View user's profile Send private message Visit poster's website
MARViN2003
Regular Visitor


Joined: Nov 27, 2005
Posts: 132
Location: Stroud, Gloucestershire

PostPosted: Mon May 31, 2010 8:54 am    Post subject: Reply with quote

What do you have in your defaultEnglishGb.lex file?

Last edited by MARViN2003 on Mon May 31, 2010 7:47 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website







Posted: Today    Post subject: Pocket GPS Advertising

Back to top
Display posts from previous:   
Post new topic   Reply to topic    Pocket GPS World Forum Index -> TomTom Portable Navigation Devices All times are GMT + 1 Hour
Goto page Previous  1, 2, 3, 4, 5 ... 15, 16, 17  Next
Page 4 of 17

 
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

Make a Donation



CamerAlert Database

Click here for the PocketGPSWorld.com Speed Camera Database

Download Speed Camera Database
22.044 (24 Apr 24)



WORLDWIDE SPEED CAMERA SPOTTERS WANTED!

Click here to submit camera positions to the PocketGPSWorld.com Speed Camera Database


12mth Subscriber memberships awarded every week for verified new camera reports!

Submit Speed Camera Locations Now


CamerAlert Apps



iOS QR Code






Android QR Code







© Terms & Privacy


GPS Shopping