hi thanks for telling me that. i change the lang and added it to the lua file and it still grayed out along with the following. read out info,announce route summary,announce country info. announce traffic. this was my translation in voice file mentioned.
i have attached my voice file and in lang file i added lane info voice.Code:function format_lane_info(DescKey)
voice_debug_log(L"TTS: DescKeyLaneinfo in: '"..DescKey..L"'", 3)
local lane_info_str = DescKey
if DescKey ~= L"" then
if wstring.find(DescKey,L"far_left") then
lane_info_str = L"Keep in the extreme left lane."
elseif wstring.find(DescKey,L"far_right") then
lane_info_str = L"Keep in the extreme right lane."
elseif wstring.find(DescKey,L"centre") then
lane_info_str = L"Stay in the middle lane."
elseif wstring.find(DescKey,L"any") then
lane_info_str = L"Continue in any lane."
else
local numb = tonumber(wstring.sub(DescKey, 1, 1))
local t = {{L"", L"two o'clock", L"three o'clock", L"four o'clock", L"five o'clock", L"six o'clock", L"seven o'clock", L"eight o'clock", L"nine o'clock"},
{L"", L"the second", L"the third", L"the fourth", L"the fifth", L"the sixth", L"the seventh", L"the eighth", L"the ninth"}}
if wstring.find(DescKey,L"side_c") then
lane_info_str = L"Keep " .. t[1][numb] .. L" lanes in the center."
elseif wstring.find(DescKey,L"side_r") or wstring.find(DescKey,L"side_l") then
lane_info_str = wstring.find(DescKey,L"side_r") and L"Stay right, don't occupy " or L"Stay left, don't occupy "
lane_info_str = numb == 1 and (lane_info_str .. L"the extreme lane.") or (lane_info_str .. t[1][numb] .. L" the extreme lanes.")
elseif wstring.find(DescKey,L"left") then
lane_info_str = L"Keep " .. t[1][numb] .. L" left lanes."
elseif wstring.find(DescKey,L"right") then
lane_info_str = L"Keep " .. t[1][numb] .. L" right lanes."
elseif wstring.find(DescKey,L"middle_l") then
lane_info_str = L"Keep " .. t[2][numb] .. L" left lanes."
elseif wstring.find(DescKey,L"middle_r") then
lane_info_str = L"Keep " .. t[2][numb] .. L" right lanes."
end
end
end
voice_debug_log(L"TTS: Laneinfo out: '"..lane_info_str..L"'", 3)
return lane_info_str
end
[Only registered and activated users can see links. Click Here To Register...]
any help would be greatly appreciated.
:mn:
Please put parts of program code in 'CODE' ('#' button) for better readability and to avoid errors in displaying content.