slotValueToSpeech
Stentor API Reference / stentor-utils/src / slotValueToSpeech
Function: slotValueToSpeech()
slotValueToSpeech(
value,type):string
Defined in: packages/stentor-utils/src/response.ts:171
Based on the provided slot value, it will return the appropriate <say-as> tag.
https://cloud.google.com/text-to-speech/docs/ssml#say%E2%80%91as https://developer.amazon.com/en-US/docs/alexa/custom-skills/speech-synthesis-markup-language-ssml-reference.html#say-as https://docs.aws.amazon.com/polly/latest/dg/supportedtags.html#say-as-tag
Parameters​
value​
RequestSlotValues
type​
"displayText" | "ssml"
Returns​
string