Here you go, again. Functions to handle "road number" are complex and might be incorrect. It will take some trials to see what/where to fix it.
Spoiler: .
Here you go, again. Functions to handle "road number" are complex and might be incorrect. It will take some trials to see what/where to fix it.
Spoiler: .
Last edited by osiris4isis; 5th July 2017 at 03:01 AM.
Do not PM me with questions. That's what a forum is for.
Okay. I appreciate your help. So here is what I found after tapping all over the map. I found only 1 street that pronounce "drive" with/without street number. The street name is "Medical Center Dr". Maybe you can find something in the config for that particular street name. FYI the road number is still the same.
Yes, it does jive with what I'm seeing in the code (lots of unused/dead code that can lead to incorrect assumption). The reason why "Medical Center Dr" (or any street without street number in front*) announced "drive" correctly is because there are codes that discriminate it (when I have time I will write up my finding) I get the feeling that the Nuance voice config was old and not completed (this is assuming that it was not modified by someone else)
* Can you find another street ending with drive without the street number and verified it?
Do not PM me with questions. That's what a forum is for.
I cant find any other street without the street number yet but I will keep trying to find one. I also tried switching between tts engine with the same app (vocalizerEX for android). The one I'm using right now (MeganTTS in the text-to-speech output android setting) pronounce 'drive' (just for 'Medical Center Dr') and 'street' correctly, but if I switch it to default VocalizerEX tts engine, it will pronounce 'doctor' (even for 'Medical Center Dr') and 'saint' (for 'St') . So it looks like the default tts engine is outdated. This is just my assumption. I might be wrong.
The engine is not outdated. The voice config file might handled it differently. I know for sure that NNG passed street name with special nuance directive (to be handled after the appropriate preprocessing) One of the thing that it preprocessed special for is US roadname; there is a "catch all" that handle anything else (but...this routine doesn't seem to be called, very odd) Stay tune for my analysis later on tonight. One more thing make absolutely sure it is using the correct voice config (remove everything except it under the content/voice directory)
Do not PM me with questions. That's what a forum is for.
First we see where roadname_abbrev_table (where most street suffix rules are defined) are used by: route_summary_format_bridge_tunnel, route_summary_format_order, traffic_event and direction_roadname_abbrev.
It is direction_roadname_abbrev that we are interested in, and it is used by: route_summary_format_street_name, format_signpost_destination, signpost_settlement, format_road_name.
According to the code
it only gets called if is_road_number is false. The function is_road_number is responsible for finding out if it's a highway name/road name and not street name. And for the moment lets assumed that it's correct.Code:Please Login or Register to see the links
So that is why we make sure roadname_abbrev_table has correct rule. And since the suffixes are pretty much all lowercases, we assumed that adding the 'dr' rule should work.
But since it doesn't, it might be passed with case sensitivity, so we need to add the following additional rules:
Here is the change for that, see if "drive" pronounced correctly now,Code:Please Login or Register to see the links
Spoiler: .
Note that we also commented out the rule
But it might not be necessary because that rule check for "dr" being the prefix (note the ^) and not suffix.Code:Please Login or Register to see the links
Last edited by osiris4isis; 9th July 2017 at 06:28 AM.
Do not PM me with questions. That's what a forum is for.
Okay, good thing. 'drive' pronounce correctly in every single street with 'Dr'. No 'doctor' mention. But some of the street name like 'Warm Springs' spells 'w a r m (single letter) Springs Drive' and also some code spells out by the tts before street name. For example the street name is 'Santa Carina Dr'. Tts says, ' Take the next right onto 'phone me alphabet equal Santa ph equal percent s ..... (im not sure what else she is saying) Santa Carina Drive phone me'.
Make sure you're not using any phoneme file. Are you using VocalizerEx voice engine?
Do not PM me with questions. That's what a forum is for.
Last edited by skully; 10th July 2017 at 02:37 AM. Reason: added more info
Bookmarks