Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PronounceDecimal ¶
PronounceFractional pronounces the given float as a sequence of digits
func PronounceInt ¶
PronounceInt pronounces the given integer as a sequence of digits.
func PronounceNumbers ¶
PronounceNumbers pronounces the digits in the given string as a sequence of digits. Non-digit characters are ignored.
Types ¶
type Composer ¶
type Composer interface { ComposeAlphaCheckResponse(brevity.AlphaCheckResponse) NaturalLanguageResponse ComposeBogeyDopeResponse(brevity.BogeyDopeResponse) NaturalLanguageResponse ComposeDeclareResponse(brevity.DeclareResponse) NaturalLanguageResponse ComposeFadedCall(brevity.FadedCall) NaturalLanguageResponse ComposeNegativeRadarContactResponse(brevity.NegativeRadarContactResponse) NaturalLanguageResponse ComposePictureResponse(brevity.PictureResponse) NaturalLanguageResponse ComposeRadioCheckResponse(brevity.RadioCheckResponse) NaturalLanguageResponse ComposeSnaplockResponse(brevity.SnaplockResponse) NaturalLanguageResponse ComposeSpikedResponse(brevity.SpikedResponse) NaturalLanguageResponse ComposeSunriseCall(brevity.SunriseCall) NaturalLanguageResponse ComposeThreatCall(brevity.ThreatCall) NaturalLanguageResponse }
Composer converts brevity responses from structured forms into natural language. It is nondeterministic; the same input may randomly produce different output, to add variety and personality to the bot's respones.
type NaturalLanguageResponse ¶
type NaturalLanguageResponse struct { // Subtitle is how the response will be displayed as in-game text. Subtitle string // Speech is the input to the TTS provider. Speech string }
NaturalLanguageResponse contains the composer's responses in text form.
Click to show internal directories.
Click to hide internal directories.