|
libosmscout 0.1
|
Abstract class for generating template-based messages for TTS engine. More...
#include <VoiceInstructionAgent.h>
Inheritance diagram for osmscout::TTSMessageGenerator:Public Member Functions | |
| virtual std::optional< std::string > | GenerateMessage (const Distance &distanceFromStart, const VoiceMessageStruct &message, const VoiceMessageStruct &then)=0 |
| Generate a spoken message for the given maneuver. | |
| virtual bool | SetLanguage (const std::string &languageCode)=0 |
| Set the language of the generated messages. | |
| virtual void | SetUnits (DistanceUnitSystem units)=0 |
| Set the distance units used for the announced distances. | |
| virtual void | SetVehicle (Vehicle vehicle)=0 |
| Set the current vehicle. | |
| virtual | ~TTSMessageGenerator ()=default |
Abstract class for generating template-based messages for TTS engine.
|
virtualdefault |
|
pure virtual |
Generate a spoken message for the given maneuver.
| distanceFromStart | current position (distance from the route start). Together with the maneuver distance it defines how far ahead the maneuver is, which may be announced ("After 300 meters, ...") and controls the wording (e.g. a short roundabout phrase when close). |
| message | the maneuver to announce |
| then | optional following maneuver, only announced when close enough |
Implemented in osmscout::TTSMessageGeneratorQt, and osmscout::NoOpTTSMessageGenerator.
|
pure virtual |
Set the language of the generated messages.
| languageCode |
Implemented in osmscout::TTSMessageGeneratorQt, and osmscout::NoOpTTSMessageGenerator.
|
pure virtual |
Set the distance units used for the announced distances.
Implemented in osmscout::TTSMessageGeneratorQt, and osmscout::NoOpTTSMessageGenerator.
|
pure virtual |
Set the current vehicle.
Implemented in osmscout::TTSMessageGeneratorQt, and osmscout::NoOpTTSMessageGenerator.