Group Abstract Group Abstract

Message Boards Message Boards

Passing SpokenString a parameter expression

Posted 12 years ago

I am trying to create a simple cloud deployed API function that will take an expression, e.g. "8*9" as a parameter and will return the spoken string "8 times 9". I can't seem to figure out the ToExpression, ToString? HoldForm? mechanism in conjunction with to make this work...

CloudDeploy[APIFunction["expression" -> "String", SpokenString[HoldForm[#expression]] &, "HTML"],Permissions -> "Public"]

POSTED BY: Steve Polyak
POSTED BY: Christopher Fox
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard