Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demonstrate building speech through dialog files #1

Open
DogeThis opened this issue Jan 25, 2019 · 0 comments
Open

Demonstrate building speech through dialog files #1

DogeThis opened this issue Jan 25, 2019 · 0 comments

Comments

@DogeThis
Copy link

DogeThis commented Jan 25, 2019

The walkthrough talks about using the dialog file, like this

dialog (Result) {
 match: TrainSchedule (schedule) {
  from-output: SearchForTrains (trainSchedule)
 }
 template("BART Schedule:")
  {speech("${value(schedule.speech)}") }
}

another pattern would be to build out the schedule text in the speech dialog file, such as (model names made up)

{speech("The ${value(schedule.departingTrain)} leaves at ${value(schedule.departingTime)} and arrives at ....

This has benefits to localization, so that localizers don't need to touch the JS to build their localized strings, and just create a new dialog file for their locale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant