Skip to content

Instantly share code, notes, and snippets.

@adrianhajdin
Last active May 13, 2023 05:48
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adrianhajdin/aa28f5c4928d05fe55aae37d83dc98d2 to your computer and use it in GitHub Desktop.
Save adrianhajdin/aa28f5c4928d05fe55aae37d83dc98d2 to your computer and use it in GitHub Desktop.
Speechly Config
category_income = [
Business
Investments
Extra income
Deposits
Lottery
Gifts
Salary
Savings
Rental income
]
category_expense = [
Bills
Car
Clothes
Travel
Food
Shopping
House
Entertainment
Phone
Pets
Other
]
*create_transaction [Create|Finish|Save] {transaction}
*cancel_transaction [Cancel|Delete|Remove|Clear] {transaction}
*add_category [Set|Change] category {to} [$category_expense|$category_income](category)
*add_category {[i mean|i meant|i said]} {the} ![category {[is|of]} | [$category_expense|$category_income](category)]
*add_date [Set|Change|Add] date {[to|for]} $SPEECHLY.DATE(date)
*add_date {[i mean|i meant|i said]} {[{the} date is|for]} $SPEECHLY.DATE(date)
*add_amount [Set|Change] amount {to} $SPEECHLY.NUMBER(amount) {dollars}
*add_amount {[i mean|i meant|i said]} {{the} amount {[is|of]}} $SPEECHLY.NUMBER(amount) {dollars}
*add_expense {Add} {an} expense ![{[for|of]} $SPEECHLY.NUMBER(amount) {dollars} | {in} | {category} | [$category_expense|$category_income](category) | {[for|in]} $SPEECHLY.DATE(date)]
*add_expense $SPEECHLY.NUMBER(amount) {[dollar|dollars]} expense {in} ![{category} | [$category_expense|$category_income](category)] {[for|in]} $SPEECHLY.DATE(date)
*add_income {Add} {[{an} income|{a} balance]} ![{[for|of]} $SPEECHLY.NUMBER(amount) {dollars} | {in} | {category} | [$category_expense|$category_income](category) | {[for|in]} $SPEECHLY.DATE(date)]
*add_income $SPEECHLY.NUMBER(amount) {[dollar|dollars]} [income|balance] {in} ![{category} | [$category_expense|$category_income](category)] {[for|in]} $SPEECHLY.DATE(date)
@iamAravindks
Copy link

what is the meaning of ! in ![category {[is|of]} | [$category_expense|$category_income](category)] in Line 28?

@aliabbasTECH
Copy link

what programing language is used to type speechly configs

@EliasPereyra
Copy link

@iamAravindks you can read it in the documentation, it's called "Permutations", a very good feature of Speechly: https://docs.speechly.com/slu-examples/cheat-sheet/#permutations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment