Added speech for About screen.
This commit is contained in:
parent
8527b8a6ef
commit
b1c07e3d3f
|
|
@ -68,6 +68,7 @@ void announceM17Info(channel_t* channel, VoicePromptQueueFlags_T flags);
|
||||||
#ifdef GPS_PRESENT
|
#ifdef GPS_PRESENT
|
||||||
void announceGPSInfo();
|
void announceGPSInfo();
|
||||||
#endif // GPS_PRESENT
|
#endif // GPS_PRESENT
|
||||||
|
void announceAboutScreen();
|
||||||
|
|
||||||
VoicePromptQueueFlags_T GetQueueFlagsForVoiceLevel();
|
VoicePromptQueueFlags_T GetQueueFlagsForVoiceLevel();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -546,6 +546,20 @@ void announceGPSInfo()
|
||||||
vpPlay();
|
vpPlay();
|
||||||
}
|
}
|
||||||
#endif // GPS_PRESENT
|
#endif // GPS_PRESENT
|
||||||
|
void announceAboutScreen()
|
||||||
|
{
|
||||||
|
vpInit();
|
||||||
|
|
||||||
|
vpQueueStringTableEntry(¤tLanguage->openRTX);
|
||||||
|
|
||||||
|
vpQueueStringTableEntry(¤tLanguage->Niccolo);
|
||||||
|
vpQueueStringTableEntry(¤tLanguage->Silvano);
|
||||||
|
vpQueueStringTableEntry(¤tLanguage->Federico);
|
||||||
|
vpQueueStringTableEntry(¤tLanguage->Fred);
|
||||||
|
vpQueueStringTableEntry(¤tLanguage->Joseph);
|
||||||
|
|
||||||
|
vpPlay();
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
there are 5 levels of verbosity:
|
there are 5 levels of verbosity:
|
||||||
|
|
|
||||||
|
|
@ -1526,7 +1526,15 @@ void ui_updateFSM(bool *sync_rtx)
|
||||||
break;
|
break;
|
||||||
// About screen
|
// About screen
|
||||||
case MENU_ABOUT:
|
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);
|
_ui_menuBack(MENU_TOP);
|
||||||
break;
|
break;
|
||||||
#ifdef RTC_PRESENT
|
#ifdef RTC_PRESENT
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue