Added speech for About screen.

This commit is contained in:
vk7js 2022-05-20 20:44:07 +10:00 committed by Silvano Seva
parent 8527b8a6ef
commit b1c07e3d3f
3 changed files with 24 additions and 1 deletions

View File

@ -68,6 +68,7 @@ void announceM17Info(channel_t* channel, VoicePromptQueueFlags_T flags);
#ifdef GPS_PRESENT
void announceGPSInfo();
#endif // GPS_PRESENT
void announceAboutScreen();
VoicePromptQueueFlags_T GetQueueFlagsForVoiceLevel();

View File

@ -546,6 +546,20 @@ void announceGPSInfo()
vpPlay();
}
#endif // GPS_PRESENT
void announceAboutScreen()
{
vpInit();
vpQueueStringTableEntry(&currentLanguage->openRTX);
vpQueueStringTableEntry(&currentLanguage->Niccolo);
vpQueueStringTableEntry(&currentLanguage->Silvano);
vpQueueStringTableEntry(&currentLanguage->Federico);
vpQueueStringTableEntry(&currentLanguage->Fred);
vpQueueStringTableEntry(&currentLanguage->Joseph);
vpPlay();
}
/*
there are 5 levels of verbosity:

View File

@ -1526,7 +1526,15 @@ void ui_updateFSM(bool *sync_rtx)
break;
// About screen
case MENU_ABOUT:
if(msg.keys & KEY_ESC)
if ((msg.keys & KEY_F1) && (state.settings.vpLevel > vpBeep))
{// quick press repeat vp, long press summary.
if (msg.long_press)
announceAboutScreen();
else
ReplayLastPrompt();
f1Handled = true;
}
else if(msg.keys & KEY_ESC)
_ui_menuBack(MENU_TOP);
break;
#ifdef RTC_PRESENT