Segment JSON schema

string.json

This file defines strings in <key, value> pairs.
Strings defined in this file can be referred by the following API and setting files.
{
  ANY: array [
    string
  ]
}

Example

Properties

ANY

A string is retrieved with its unique key. The value of the key is defined as an array of strings. When the array size is larger than 1, the retrieved string is randomly selected from the array. The value can contain meta expressions, ${meta-name}, to refer to other strings.
Example

// mention.screen_name = 'RENA')
var speach = new da.SpeechSynthesis();
speach.speak(da.getString('rt', { name: mention.screen_name });, { onend : function() {
    …
}})

================================
[string.json]
{
 'rt': [
   'A new message from ${name},'
 ]
}
================================

=> da.getString returns 'A new message from RENA,'