Skip to main content

Standard variables

Standard variables are predefined variables that make supporting certain common but somewhat complex expressions easier.

They look like regular variables and are used in the same way, but you don't need to define them. While standard variables can be used as such (if they appear as entity values), we recommend assigning the entity in question the appropriate entity data type.

$SPEECHLY.DATE

Examples
tomorrow
next Friday
January fifth twenty twenty

$SPEECHLY.TIME

  • Expands to: time expressions
  • Entity data type: time
Examples
three thirty pm
quarter past eleven
fifteen twenty five

$SPEECHLY.NUMBER

  • Expands to: arbitrary numbers
  • Entity data type: number
Examples
five million five hundred twenty-eight thousand eight point twelve
minus zero point zero five
eleven thousand

$SPEECHLY.CARDINAL_NUMBER

  • Expands to: arbitrary cardinals
  • Entity data type: number
Examples
five million five hundred twenty-eight thousand eight
minus three
eleven hundred eleven

$SPEECHLY.SMALL_NUMBER

  • Expands to: small numbers
  • Entity data type: number
Examples
seventeen point five
minus five

$SPEECHLY.SMALL_CARDINAL_NUMBER

  • Expands to: small cardinal numbers
  • Entity data type: number
Examples
seventeen
minus five
ninety-five

$SPEECHLY.FOUR_DIGIT_NUMBER

  • Expands to: four digit numbers
  • Entity data type: number
Examples
five six four nine
one nine eight four

$SPEECHLY.POSITIVE_NUMBER

  • Expands to: positive numbers
  • Entity data type: number
Examples
eleven hundred eleven
seventeen
five million five hundred

$SPEECHLY.NEGATIVE_NUMBER

  • Expands to: negative numbers
  • Entity data type: number
Examples
minus five
negative twenty-four

$SPEECHLY.SMALL_ORDINAL_NUMBER

  • Expands to: ordinal numbers 1-31
  • Entity data type: number
Examples
first
second
thirty-first

$SPEECHLY.IDENTIFIER

  • Expands to: 1-12 character identifier
  • Entity data type: identifier
Examples
two seven
one two seven dot zero dot zero dot one slash x y

$SPEECHLY.IDENTIFIER_SHORT

  • Expands to: 1-4 character identifier
  • Entity data type: identifier
Examples
zero zero seven x
alpha dash one
two seven

$SPEECHLY.IDENTIFIER_MEDIUM

  • Expands to: 5-8 character identifier
  • Entity data type: identifier
Examples
a b one two dash nine x
delta foxtrot five seven dash two

$SPEECHLY.IDENTIFIER_LONG

  • Expands to: 9-12 character identifier
  • Entity data type: identifier
Examples
one two seven dot zero dot zero dot one slash x y

$SPEECHLY.PHONE_NUMBER

Examples
plus three five eight four zero one two three four five six
one two three four five six

$SPEECHLY.PERSON_NAME

Examples
amelia m earhart
john smith
c o n a n o'brien

$SPEECHLY.EMAIL_ADDRESS

  • Expands to: Email addresses
  • Entity data type: email
Examples
hello at speechly dot com
john dot smith at company dot com

$SPEECHLY.WEB_ADDRESS

  • Expands to: website addresses
  • Entity data type: url
Examples
w w w dot speechly dot com
h t t p s colon slash slash docs dot speechly dot com

$SPEECHLY.STREET_ADDRESS

  • Expands to: US style street addresses
  • Entity data type: address
Examples
one twenty three michigan avenue
sixty four east twenty second street