od velsak v 28 lis 2012 12:05
Kdo používáte v novém amatérově hlase 7.0.1 možnost vypnout jednotky rychlosti u hlášení o překročení rychlosti, tak jsem zkusil stejnou věc u hlášení možného navýšení rychlosti.
v customized.lua přidat zelené:
sc_wGetSL_sayphase = function(limit)
local limitphrasepart = (MODEL.lua.wCorrectionSpeedUnit() and sc_wCorrectionSpeedUnitSupported() or not MODEL.lua.wSLTTSVoiceSecondPhraseUnit()) and 2 or 0
local announce = SysConfig:get("lua", "amannounce_speed_unit", true)
local limitphraseunit = announce and MODEL.lua.wSLTTSVoiceSecondPhraseUnit() and MODEL.lua.wCorrectionSpeedUnit() and sc_wCorrectionSpeedUnitSupported() and sc_wtranslateunit(MODEL.other.format_speed(limit, MODEL.regional.units(), 1, 1), wspeed_units) or L""
local limitphrase = MODEL.lua.wSLTTSVoiceSecondPhrase() and translated_voice_format(m_i18n_voice("Limit %s"), MODEL.other.format_speed(limit, MODEL.regional.units(), 1, limitphrasepart) .. limitphraseunit) or L""
return translate_voice("You can increase speed.") .. L" " .. limitphrase
end
Honor 10 - 1520*720, 4GB RAM, DUAL SIM, OREO 8.1.
NextGen 9.18.27.734842, skin PONGO 31.1.2018